You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized that that was going to be a problem after I made those changes. Going to have to look into why TIME_ZONE wouldn't work right with just datetime objs (maybe it needs to use utcnow(), but im not sure that works in all SQL engines)
Ya I think that's the right change -- need to confirm that wont impact other DB backends (I'll probably just see what auto_now_add does in Django). Gonna get this taken care of this weekend for sure.
Activity
mfrasca commentedon Apr 28, 2011
you might want to have a look at mfrasca/djang-sentry@35ba710d0d0db60dde0667922cff2770adf6a378
mfrasca commentedon Apr 28, 2011
you might want to have a look at mfrasca/django-sentry@35ba710d0d0db60dde0667922cff2770adf6a378
dcramer commentedon Apr 29, 2011
@mfrasca was that just so it could be specified?
I realized that that was going to be a problem after I made those changes. Going to have to look into why TIME_ZONE wouldn't work right with just datetime objs (maybe it needs to use utcnow(), but im not sure that works in all SQL engines)
mfrasca commentedon Apr 29, 2011
what problems are you observing with TIME_ZONE?
mfrasca commentedon Apr 29, 2011
I'm reading from this one
http://www.postgresql.org/docs/8.0/static/datatype-datetime.html
and thinking aloud...
timestamp with time zonetodatetime, you get a non injective function.datetimetotimestamp with time zone, you need choose the time zone for the timestamps.so I'm changing the default from datetime.now to datetime.utcnow.
dcramer commentedon Apr 29, 2011
Ya I think that's the right change -- need to confirm that wont impact other DB backends (I'll probably just see what auto_now_add does in Django). Gonna get this taken care of this weekend for sure.
dcramer commentedon May 14, 2011
Marking this as fixed