Re: [gnome-db] String to timestamp conversion

Alexey Zakhlestin <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
On Thu, Feb 24, 2011 at 5:59 PM, Vivien Malerba <[email protected]> wrote:
>
>
> On 24 February 2011 15:28, Piotr Pokora <[email protected]> wrote:
>>
>> Hi!
>>
>> There's some issue with G_TYPE_STRING to GDA_TYPE_TIMESTAMP conversion:
>>
>> '2011-01-01T00:00:00+00:00' can not be converted to timestamp, though,
>> it's valid ISO 8601 datetime.
>
> The function internally used is gda_parse_iso8601_timestamp() which does not
> (despite its name) handle the complete iso8601 format. As mentionned in its
> doc, the accepted format is:
> "YYYY-MM-DD HH:MM:SS[.ms][TZ]".
> Notice that instead of the 'T', a space is required.

so, this should be ok, right?
"2011-01-01 00:00:00+00:00"

or is some other format used for timezone?


-- 
Alexey Zakhlestin, http://twitter.com/jimi_dini
http://www.milkfarmsoft.com/
_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.