#2896 NORM Untriag: sugar.date API review

Zarro Boogs per Child bugtracker at laptop.org
Mon Aug 20 00:10:53 EDT 2007


#2896: sugar.date API review
-------------------------------+--------------------------------------------
  Reporter:  marco             |       Owner:  Eben      
      Type:  defect            |      Status:  new       
  Priority:  normal            |   Milestone:  Untriaged 
 Component:  interface-design  |     Version:            
Resolution:                    |    Keywords:  api-review
  Verified:  0                 |  
-------------------------------+--------------------------------------------
Comment (by AlbertCahalan):

 Replying to [comment:3 marco]:
 > Replying to [comment:2 tomeu]:

 > The reason I run into this is that python datetime objects are all
 timezone relative. It's tricky (but possible) to convert from a Date to a
 timestamp.

 This kind of thing can be a great source of bugs. It sounds like
 the python datetime objects have a design flaw that will hurt.

 > > I think we should display all dates relative to the local time zone,
 right?

 The key word being "display". Up until the moment of display, use UTC.
 It's almost never good to do anything else (computation, storage, etc.)
 with non-UTC time.

-- 
Ticket URL: <https://dev.laptop.org/ticket/2896#comment:4>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list