Mercurial > p > roundup > code
diff roundup/mailgw.py @ 1402:27586da5557c
Added users' timezone support
| author | Andrey Lebedev <kedder@users.sourceforge.net> |
|---|---|
| date | Mon, 27 Jan 2003 16:32:50 +0000 |
| parents | f19dde90e473 |
| children | 8dc60d87ab42 |
line wrap: on
line diff
--- a/roundup/mailgw.py Fri Jan 24 06:22:03 2003 +0000 +++ b/roundup/mailgw.py Mon Jan 27 16:32:50 2003 +0000 @@ -73,7 +73,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.107 2003-01-15 22:17:19 kedder Exp $ +$Id: mailgw.py,v 1.108 2003-01-27 16:32:46 kedder Exp $ ''' import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -869,7 +869,7 @@ props[propname] = password.Password(value.strip()) elif isinstance(proptype, hyperdb.Date): try: - props[propname] = date.Date(value.strip()) + props[propname] = date.Date(value.strip()).local(self.db.getUserTimezone()) except ValueError, message: errors.append('contains an invalid date for %s.'%propname) elif isinstance(proptype, hyperdb.Interval):
