[ZCM] [ZC] 1413/ 7 Edit "DateTime object with timezone GMT+XX.XX"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Wed Sep 22 07:18:21 EDT 2004


Issue #1413 Update (Edit) "DateTime object with timezone GMT+XX.XX"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1413

==============================================================
= Edit - Entry #7 by tino on Sep 22, 2004 7:18 am

 Changes: edited transcript, new comment

India that is. See: 
http://lists.gnu.org/archive/html/bug-cvs/2004-04/msg00320.html
there are other people biten by this :-)
Maybe the OP could provide a patch?
________________________________________
= Comment - Entry #6 by ajung on Sep 22, 2004 6:57 am

Please submit a patch if it is important for you but there is nothing about this problem that makes it "critical".
________________________________________
= Comment - Entry #5 by yaybee on Sep 22, 2004 6:51 am

Perhaps I am provincial, but in my part of the world there are no fractional time zones.  I don't see a bug here.  DateTime should only accept an int for an offset value because time zones come in full hours of offset, not fractional hours.  I think it is nice (a feature, not a bug) that it accepts a float like 5.30 at all, and converts it to an int for the time zone conversion.  I would consider helping on this one if I could see what the problem might be, but this behavior sounds exactly right to me.  Amit, do you have more information about what you think the proper behavior should be?
________________________________________
= Comment - Entry #4 by ajung on Jul 20, 2004 5:41 am

I just changed the importance because this issue is not critical and it does not mean that someone is assigned to handle this issue at this time...patches are welcome.
________________________________________
= Comment - Entry #3 by amit_khan on Jul 20, 2004 4:37 am

When can we expect a patch for the same? Is there any work around we may use till the patch is available for it?

Best Regards
Amit Khan

________________________________________
= Edit - Entry #2 by ajung on Jul 20, 2004 12:34 am

 Changes: submitter email, importance (critical => medium)
________________________________________
= Request - Entry #1 by amit_khan on Jul 8, 2004 8:25 am

DateTime() returns a wrong DateTime object when local time zone offset from GMT is not an integer. Like for a local time zone GMT+05.30, DateTime() object is returning an DateTime object where time zone offset is set to GMT+5 - this is resulting 30 minutes of difference when we are translating the current time to some other time zope. 

It seems the problem is in constructor (init() method) of DateTime class.

The problem remains in 2.5+ versions as well like 2.6, 2.7 etc.
Best Regards
Amit

==============================================================



More information about the Zope-Collector-Monitor mailing list