~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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