y2010 problem
Greg Hewgill <[email protected]> Thu, 7 Jan 2010 11:00:18 +0000
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
I found a year 2010 bug in your software via Google Code Search (see http://ghewgill.livejournal.com/140515.html). Attached is a patch to try to fix it. Greg Hewgill http://hewgill.com ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ BitPim-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bitpim-devel
bitpim-y2010.patch
(text/plain, 830 B)
Index: src/phones/com_sanyo.py
===================================================================
--- src/phones/com_sanyo.py (revision 4776)
+++ src/phones/com_sanyo.py (working copy)
@@ -344,7 +344,7 @@
res=self.sendpbcommand(req, respc)
if res.entry.dunno4==2:
entry=sms.SMSEntry()
- entry.datetime="200%d%02d%02dT%02d%02d%02d" % ((res.entry.year, res.entry.month, res.entry.day, res.entry.hour,res.entry.minute, res.entry.second))
+ entry.datetime="%04d%02d%02dT%02d%02d%02d" % ((2000 + res.entry.year, res.entry.month, res.entry.day, res.entry.hour,res.entry.minute, res.entry.second))
if box==0:
entry.folder=entry.Folder_Inbox
entry._from=res.entry.phonenum