Rev 2222: (James Henstridge) Don't rely on time.timezone and time.altzone, since they are not always updated properly. in /home/pqm/archives/thelove/bzr/+trunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Jan 4 21:39:04 GMT 2007


------------------------------------------------------------
revno: 2222
revision-id: pqm at pqm.ubuntu.com-20070104213903-ddc3293ca385e7a9
parent: pqm at pqm.ubuntu.com-20070103073947-f9906c0b1f425aa9
parent: john at arbash-meinel.com-20070104200616-5c09warmkqcgcbar
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2007-01-04 21:39:03 +0000
message:
  (James Henstridge) Don't rely on time.timezone and time.altzone, since they are not always updated properly.
modified:
  bzrlib/osutils.py              osutils.py-20050309040759-eeaff12fbf77ac86
  bzrlib/tests/test_osutils.py   test_osutils.py-20051201224856-e48ee24c12182989
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20070104200616-5c09warmkqcgcbar
    parent: pqm at pqm.ubuntu.com-20070103073947-f9906c0b1f425aa9
    parent: james at jamesh.id.au-20070104104555-6ffbz0z2ywkfspk1
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: jam-integration
    timestamp: Thu 2007-01-04 14:06:16 -0600
    message:
      (James Henstridge) Don't rely on time.timezone and time.altzone, since they are not always updated properly.
    ------------------------------------------------------------
    merged: james at jamesh.id.au-20070104104555-6ffbz0z2ywkfspk1
    parent: james at jamesh.id.au-20070102084032-se8cqzt2yg2bnpsn
    committer: James Henstridge <james at jamesh.id.au>
    branch nick: bzr.smallfixes (James Henstridge)
    timestamp: Thu 2007-01-04 19:45:55 +0900
    message:
      narrow the range that the local_time_offset() test uses
    ------------------------------------------------------------
    merged: james at jamesh.id.au-20070102084032-se8cqzt2yg2bnpsn
    parent: james at jamesh.id.au-20070101213631-kq9gl0ltvmpm12y0
    committer: James Henstridge <james at jamesh.id.au>
    branch nick: bzr.smallfixes (James Henstridge)
    timestamp: Tue 2007-01-02 17:40:32 +0900
    message:
      add some simple tests for local_time_offset()
    ------------------------------------------------------------
    merged: james at jamesh.id.au-20070101213631-kq9gl0ltvmpm12y0
    parent: pqm at pqm.ubuntu.com-20061222180719-31fc1e7cbaf32a4b
    committer: James Henstridge <james at jamesh.id.au>
    branch nick: bzr.smallfixes (James Henstridge)
    timestamp: Tue 2007-01-02 06:36:31 +0900
    message:
      Don't rely on time.timezone and time.altzone in local_time_offset(), 
      since they may not be accurate or applicable to the given timestamp (see 
      bug 77588).
      
      Instead, use the datetime module to find the difference between the 
      local time representation and UTC time representation of the timestamp.



More information about the bazaar-commits mailing list