diff mercurial/util.py @ 1953:379ab45b91b7

change default strftime format for better portability On some systems, such as Solaris and HP-UX, "%c" format give output without the leading zero on the single-digit month-day.
author TK Soh <teekaysoh@yahoo.com>
date Tue, 14 Mar 2006 22:01:30 -0800
parents 696230e52e4d
children f92cf4a8cedd
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -742,7 +742,7 @@ def makedate():
         tz = time.timezone
     return time.mktime(lt), tz
 
-def datestr(date=None, format='%c'):
+def datestr(date=None, format='%a %b %d %H:%M:%S %Y'):
     """represent a (unixtime, offset) tuple as a localized time.
     unixtime is seconds since the epoch, and offset is the time zone's
     number of seconds away from UTC."""