I'm seeing naive timetamps for many different objects. I'm running 2.0.8. - Review.timestamp - ReviewRequest.time_added - ChangeDescription.timestamp - user.last_login - Comment.timestamp - etc.
Here is a snippet of the log, showing some of the above. 19:36:52WARNING - /usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py:848: RuntimeWarning: DateTimeField *ChangeDescription.timestamp* received a naive datetime (2014-10-09 00:00:00) while time zone support is active. RuntimeWarning) 19:36:52WARNING - /usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py:848: RuntimeWarning: DateTimeField *Review.timestamp* received a naive datetime (2014-09-09 00:00:00) while time zone support is active. RuntimeWarning) 19:36:52WARNING - /usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py:848: RuntimeWarning: DateTimeField Review.timestamp received a naive datetime (2014-10-09 00:00:00) while time zone support is active. RuntimeWarning) 19:36:52WARNING - /usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py:848: RuntimeWarning: DateTimeField *ReviewRequest.time_added* received a naive datetime (2014-09-09 00:00:00) while time zone support is active. RuntimeWarning) On Tuesday, August 26, 2014 5:16:34 AM UTC-4, Christian Hammond wrote: > > Hi Bruce, > > Does yours also mention "Review.timestamp," or is it a different > DateTimeField? > > Looking through the codebase, I don't immediately see anywhere where we'd > be generating a so-called "naive" timestamp (one generated without timezone > information), but it's definitely happening somewhere. > > - Christian > > -- > Christian Hammond - [email protected] <javascript:> > Review Board - http://www.reviewboard.org > Beanbag, Inc. - http://www.beanbaginc.com > > > On Mon, Aug 25, 2014 at 6:32 AM, Bruce Cran <[email protected] > <javascript:>> wrote: > >> I've also seen this timestamp warning in the logs quite regularly: I >> don't know if it's related, but the times in the logs are 7 hours ahead - >> we're in UTC-7. The times within the web interface are correct. >> >> -- >> Bruce >> >> >> On Monday, August 25, 2014, Greg Burcher <[email protected] >> <javascript:>> wrote: >> >>> Thanks for the updates! >>> >>> 13:42:37 WARNING - >>> /usr/local/lib/python2.7/dist-packages/Django-1.6.5-py2.7.egg/django/db/models/fields/__init__.py:848: >>> >>> RuntimeWarning: DateTimeField Review.timestamp received a naive datetime >>> (2014-07-17 00:00:00) while time zone support is active. >>> RuntimeWarning) >>> >>> I haven't seen this one. If you can figure out a reproduction >>> case for this, it would be very helpful. >>> I’ve seen this when moving from an older database (pre-Django >>> 1.4), back when timezone information wasn’t included in the database. If >>> this was a recent upgrade from 1.6 or older, I think this will happen. >>> >>> We are RB version 2.0.2. New install as a month ago. Not an upgrade. I'm >>> not sure what action causes this warning. We get tons of these. >>> >>> Greg >>> >>> -- >>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >>> --- >>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >>> --- >>> Happy user? Let us know at http://www.reviewboard.org/users/ >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "reviewboard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> -- >> -- >> Bruce Cran >> >> -- >> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >> --- >> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >> --- >> Happy user? Let us know at http://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
