~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

  • Committer: Tarmac
  • Author(s): Florent Gallaire
  • Date: 2017-03-17 12:23:47 UTC
  • mfrom: (6621.1.1 fix-gmtime-lite)
  • Revision ID: tarmac-20170317122347-2nnf3cicpgrhux3h
Fix for Windows and 32-bit platforms buggy gmtime(). [r=vila,richard-wilbur]

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
        # Windows or if it's manually configured it might need to be created,
243
243
        # and then it should be private
244
244
        os.makedirs(crash_dir, mode=0600)
245
 
    date_string = time.strftime('%Y-%m-%dT%H:%M', time.gmtime())
 
245
    date_string = time.strftime('%Y-%m-%dT%H:%M', osutils.gmtime())
246
246
    # XXX: getuid doesn't work on win32, but the crash directory is per-user
247
247
    if sys.platform == 'win32':
248
248
        user_part = ''