Re: Timezone handling

2013-07-25 Thread Julien Danjou
On Wed, Jul 24 2013, Russ Tyndall wrote: > Baring the rest of the issues you might be experiencing with these layered > systems, "2013-01-01 11:00:00" is considered timezoneless (ie: local zone of > whatever computer is interpreting it). If you wish to insert "2013-01-01 > 04:00:00 UTC" the corre

Re: Timezone handling

2013-07-24 Thread Russ Tyndall
On 7/24/2013 10:37 AM, Julien Danjou wrote: Not really unfortunatelly, unless I've missed the obvious. I've still have no clue on how to insert "2013-01-01 12:00:00 UTC" into PG. Your first example inserted "2013-01-01 04:00:00 UTC", and the second example inserted "2013-01-01 03:00:00 UTC". Th

Re: Timezone handling

2013-07-24 Thread Julien Danjou
On Wed, Jul 24 2013, Sabra Crolleton wrote: Hi Sabra, > Are you thinking that PG will allow you to have different timezones in your > timestamp? If my understanding of PG is correct, it keeps everything in a > single timezone - UTC. Then everything else is set using the offset. See, > e.g. http:/

Re: Timezone handling

2013-07-24 Thread Sabra Crolleton
Julien, Are you thinking that PG will allow you to have different timezones in your timestamp? If my understanding of PG is correct, it keeps everything in a single timezone - UTC. Then everything else is set using the offset. See, e.g. http://www.postgresql.org/docs/9.1/static/datatype-datetime.h

Re: Timezone handling

2013-07-24 Thread Julien Danjou
On Wed, Jul 24 2013, Sabra Crolleton wrote: > I use the local-time package with encode-timestamp to create the timestamp > and just put that into the database. > > Function: local-time:encode-timestamp nsec sec minute hour day month year > &key timezone offset into > > Returns a new timestamp inst

Re: Timezone handling

2013-07-23 Thread Sabra Crolleton
I use the local-time package with encode-timestamp to create the timestamp and just put that into the database. Function: local-time:encode-timestamp nsec sec minute hour day month year &key timezone offset into Returns a new timestamp instance corresponding to the specified time elements. The of