~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/timestamp.py

  • Committer: Aaron Bentley
  • Date: 2007-03-09 22:41:47 UTC
  • mto: (2323.6.9 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2330.
  • Revision ID: abentley@panoramicfeedback.com-20070309224147-m7or85t0o86c0t34
Fix patch time formatting

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    assert offset % 36 == 0
131
131
    tm = time.gmtime(secs+offset)
132
132
    time_str = time.strftime('%Y-%m-%d %H:%M:%S', tm)
133
 
    return '%s %+05d' % (time_str, abs(offset/36))
 
133
    return '%s %+05d' % (time_str, offset/36)
134
134
 
135
135
 
136
136
def parse_patch_date(date_str):