[storm] DateTime and tz

Gustavo Niemeyer gustavo at niemeyer.net
Thu Aug 30 16:21:57 BST 2007


> Attached is file with traceback. I have also included an INSERT statement that 
> shows the timestamp being saved to sqlite with a tz offset. There are two 
> attempts at retrieving the information. The first fails with the value error. 
> The second returns a None value. If it helps I am using your dateutil package 
> to generate the tzinfo. In this case I am using tzlocal() to get my local tz 
> (US/PDT). What I know of datetimes in sqlite I got from the following link
> http://www.sqlite.org/cvstrac/wiki?p=DateAndTimeFunctions.
> There are functions to translate from UTC to localtime and back. Using the 
> datetime function (with the 'localtime' option) on the date I inserted works.  
> In other words it sees the offset and parses the time correctly.

Thanks!  I'll check that out.

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the storm mailing list