~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_bash_completion.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:
23
23
import bzrlib
24
24
import bzrlib.help
25
25
import bzrlib.commands
 
26
import bzrlib.osutils
26
27
 
27
28
 
28
29
def get_filename(options):
30
31
 
31
32
 
32
33
def infogen(options, outfile):
33
 
    t = time.time()
34
 
    tt = time.gmtime(t)
 
34
    tt = bzrlib.osutils.gmtime()
35
35
    params = \
36
36
           { "bzrcmd": options.bzr_name,
37
37
             "datestamp": time.strftime("%Y-%m-%d",tt),