XBEL item #1665664, was opened at 2007-02-21 22:42
Message generated for change (Settings changed) made by sergiomb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=707658&aid=1665664&group_id=6473

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Sérgio Monteiro Basto (sergiomb)
Assigned to: Nobody/Anonymous (nobody)
>Summary: parse time is depend of system timezone 

Initial Comment:
I begin to report problem on python 
(https://sourceforge.net/tracker/index.php?func=detail&aid=1656559&group_id=5470&atid=105470)

but this is a specif of file ./site-packages/_xmlplus/utils/iso8601.py 

 gmt = __extract_date(m) + __extract_time(m) + (0, 0, 0) this is wrong 
My sugestion is:  
 gmt = __extract_date(m) + __extract_time(m)
 gmt = datetime(gmt).timetuple()

(0,0,0) zero for week of day, zero for day of the year and zero isdst is the 
error here. 

timetuple calculate this last 3 numbers well. 
and my problem is gone !

references http://docs.python.org/lib/module-time.html: 
0       tm_year         (for example, 1993)
1       tm_mon          range [1,12]
2       tm_mday         range [1,31]
3       tm_hour         range [0,23]
4       tm_min          range [0,59]
5       tm_sec          range [0,61]; see (1) in strftime() description
6       tm_wday         range [0,6], Monday is 0
7       tm_yday         range [1,366]
8       tm_isdst        0, 1 or -1; see below




----------------------------------------------------------------------

Comment By: Sérgio Monteiro Basto (sergiomb)
Date: 2007-02-22 16:19

Message:
Logged In: YES 
user_id=4882
Originator: YES

Please forget my last comment it is all wrong.
finally I resolve my problem 

instead return time.mktime which is timezone system depend 
return time.mktime(gmt) + __extract_tzd(m) - time.timezone

I use calendar.timegm which isn't 
return calendar.timegm(gmt) + __extract_tzd(m) - time.timezone

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=707658&aid=1665664&group_id=6473
_______________________________________________
XML-SIG maillist  -  XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig

Reply via email to