[Zope3-checkins] CVS: Zope3/src/zope/i18n - format.py:1.7
Steve Alexander
steve@cat-box.net
Tue, 15 Apr 2003 11:24:04 -0400
Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv7329/src/zope/i18n
Modified Files:
format.py
Log Message:
Doing with math what was done with 'if'.
=== Zope3/src/zope/i18n/format.py 1.6 => 1.7 ===
--- Zope3/src/zope/i18n/format.py:1.6 Sat Apr 12 20:21:42 2003
+++ Zope3/src/zope/i18n/format.py Tue Apr 15 11:24:03 2003
@@ -494,9 +494,7 @@
else:
ampm = calendar.am
- weekday = dt.weekday()+2
- if weekday > 7:
- weekday = weekday%7
+ weekday = (dt.weekday()+1) % 7 + 1
return {
('a', 1): ampm,