~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Martin Pool
  • Date: 2005-07-29 13:16:51 UTC
  • Revision ID: mbp@sourcefrog.net-20050729131651-c687f8cab10d962b
- better error from format_date()

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        tt = time.localtime(t)
368
368
        offset = local_time_offset(t)
369
369
    else:
370
 
        raise BzrError("unsupported timezone format %r",
371
 
                ['options are "utc", "original", "local"'])
 
370
        raise BzrError("unsupported timezone format %r" % timezone,
 
371
                       ['options are "utc", "original", "local"'])
372
372
 
373
373
    return (time.strftime("%a %Y-%m-%d %H:%M:%S", tt)
374
374
            + ' %+03d%02d' % (offset / 3600, (offset / 60) % 60))