~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_bash_completion.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:
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),