Mercurial > hg-stable
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 Tue Mar 14 21:40:46 2006 -0800 +++ b/mercurial/util.py Tue Mar 14 22:01:30 2006 -0800 @@ -742,7 +742,7 @@ 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."""