Mercurial > hg-stable
diff hgext/notify.py @ 6229:c3182eeb70ea
dates: improve timezone handling
datestr:
- add format specifiers %1 and %2 for timezone hours and minutes
- remove timezone and timezone format options
- correctly find timezone hours and minutes for fractional and negative timezones
- update users
strdate:
- correctly find timezone hours and minutes for fractional and negative timezones
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 11 Mar 2008 17:42:41 -0500 |
parents | f89fd07fc51d |
children | e8d447d91cdb |
line wrap: on
line diff
--- a/hgext/notify.py Tue Mar 11 17:42:29 2008 -0500 +++ b/hgext/notify.py Tue Mar 11 17:42:41 2008 -0500 @@ -210,9 +210,7 @@ del msg['From'] msg['From'] = sender - msg['Date'] = util.datestr(date=util.makedate(), - format="%a, %d %b %Y %H:%M:%S", - timezone=True) + msg['Date'] = util.datestr(format="%a, %d %b %Y %H:%M:%S %1%2") fix_subject() fix_sender()