Skip to content

OpenSource 1000ASA.com

Sections
Personal tools
You are here: Home » Support forum » Format for startDate field???

Forum Post : Format for startDate field???

Up one level
Posted by at 2007-02-21 18:06 (1 reply)

What is the format for importing a date into the startDate field for non-GMT+0 time zones?

This is what I am using, but I am running into timezone problems:

2007-02-21 17:30:00

for 5:30 PM on February 21, 2007.

When I look in the portal catalog at this object, it says the start date is

2007/02/21 17:30:00 GMT+0

The time zone for my zope installation is US/Mountain (GMT-7, no daylight savings). I have the TZ environment variable set to "US/Mountain" in my
runzope script. When I manually add an event to the site, the times are correct.

The problem I am running into is that 2007/02/21 17:30:00 GMT+0 translates to 2007/02/21 1030:00 US/Mountain, so the event shows up in the calendar at
10:30 am on 2/21, and not 5:30 pm.

I tried to specify the time zone for the startDate, but the parser does not pick it up. For example, I tried the following:

2007-02-21 17:30:00 GMT-7

and

2007-02-21 17:30:00 US/Mountain

but the output of the ArchCSV displays

[09:21.54]: Starting import...
Processing Field Data:
[progress:1 out of 72 (1.39 %)] imported: imported.2007-02-21.092155
with dict:{'startDate': '2007-02-21 17:30:00',

so the time zone info is ignored.

How do I get ArcheCSV to correctly interpret the time for my imported events?

Thanks!

Re: Format for startDate field??? SOLVED

Posted by at 2007-02-23 18:52
The problem is with the DateTime.py module in Zope 2.9. See http://www.mail-archive.com/zope@zope.org/msg26862.html
« January 2009 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
 
 

Powered by Plone

This site conforms to the following standards: