Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3074

Criteria#distinct will return you UTC time no matter what

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0
    • Affects Version/s: None
    • Component/s: 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 Emily Stolfo
            Reporter:
            netoneko netoneko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: