~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

  • Committer: Florent Gallaire
  • Date: 2017-03-17 10:39:02 UTC
  • mto: This revision was merged to the branch mainline in revision 6622.
  • Revision ID: fgallaire@gmail.com-20170317103902-xsmafws9vn8rczx9
Fix for Windows and 32-bit platforms buggy gmtime().

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 = ''