Criteria#distinct will return you UTC time no matter what

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 6.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      If you set use_utc: false Mongoid will localize your DateTime fields, but only in the models. Model#distinct is not affected by it and always returns UTC time.

            Assignee:
            Emily Stolfo (Inactive)
            Reporter:
            netoneko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: