hgext/fastexport.py
branchstable
changeset 44821 edffab2cf0ea
parent 44811 5d309906ed0e
child 48116 5ced12cfa41b
equal deleted inserted replaced
44820:f71c8eea7161 44821:edffab2cf0ea
    51         return b"<" + user_email + b">"
    51         return b"<" + user_email + b">"
    52 
    52 
    53 
    53 
    54 def convert_to_git_date(date):
    54 def convert_to_git_date(date):
    55     timestamp, utcoff = date
    55     timestamp, utcoff = date
    56     tzsign = b"+" if utcoff < 0 else b"-"
    56     tzsign = b"+" if utcoff <= 0 else b"-"
    57     if utcoff % 60 != 0:
    57     if utcoff % 60 != 0:
    58         raise error.Abort(
    58         raise error.Abort(
    59             _(b"UTC offset in %b is not an integer number of seconds") % (date,)
    59             _(b"UTC offset in %b is not an integer number of seconds") % (date,)
    60         )
    60         )
    61     utcoff = abs(utcoff) // 60
    61     utcoff = abs(utcoff) // 60