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
elps. Sabra On Tue, Jul 23, 2013 at 3:39 PM, Julien Danjou wrote: > Hi there, > > I'm struggling with timezone handling in Postmodern. I'm using timestamp > with time zone column types, and I'm looking for the correct way to feed > postmodern such information on

Timezone handling

2013-07-23 Thread Julien Danjou
Hi there, I'm struggling with timezone handling in Postmodern. I'm using timestamp with time zone column types, and I'm looking for the correct way to feed postmodern such information on insert. Basically, I don't see any class that would fit. I've tried to grep through