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

Embedded created_at timestamp not correct time

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.15
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            cameronkendall cameronkendall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: