~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_man.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:
32
32
import bzrlib.help
33
33
import bzrlib.help_topics
34
34
import bzrlib.commands
 
35
import bzrlib.osutils
35
36
 
36
37
from bzrlib.plugin import load_plugins
37
38
load_plugins()
44
45
 
45
46
def infogen(options, outfile):
46
47
    """Assembles a man page"""
47
 
    t = time.time()
48
 
    tt = time.gmtime(t)
 
48
    tt = bzrlib.osutils.gmtime()
49
49
    params = \
50
50
           { "bzrcmd": options.bzr_name,
51
51
             "datestamp": time.strftime("%Y-%m-%d",tt),