~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-09 07:33:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050309073300-d270e9d0058727b9
fix inverted calculation for original timezone -> utc

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
        tt = time.gmtime(t)
186
186
        offset = 0
187
187
    elif timezone == 'original':
188
 
        tt = time.gmtime(t - offset)
 
188
        tt = time.gmtime(t + offset)
189
189
    elif timezone == 'local':
190
190
        tt = time.localtime(t)
191
191
        offset = local_time_offset()