Embedded created_at timestamp not correct time

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 3.0.15
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I've added include Mongoid::Timestamps::Created to a document model, and when I create the document and run a basic query like User.first the created_at time is ahead by 8 hours. It looks like its the UTC time.

      But when I run the individual field User.first.created_at it gives me the correct time.

      I also went into the mongo shell and used Date() and Time and it gave me the correct time. Is there something I'm missing? Thanks!

              Assignee:
              Unassigned
              Reporter:
              cameronkendall
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: