Message7973

Author santa4nt
Recipients santa4nt
Date 2013-03-24.00:54:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364086469.6.0.100637021458.issue2033@psf.upfronthosting.co.za>
In-reply-to
Content
Root cause is this parse behavior:

Jython 2.7b1+ (default:cb99491f484e+, Mar 23 2013, 17:45:18) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_17
Type "help", "copyright", "credits" or "license" for more information.
>>> from time import strptime
>>> strptime('Feb 29', '%b %d')
time.struct_time(tm_year=1970, tm_mon=3, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=60, tm_isdst=-1)

Which, in turn, is caused by this Java behavior:

import java.text.SimpleDateFormat;

public class DateParse {
    public static void main(String[] args) throws Exception {
        SimpleDateFormat d = new SimpleDateFormat("MMM dd");
        System.out.println(d.parse("Feb 29").toString());
    }
}

$ java DateParse 
Sun Mar 01 00:00:00 PST 1970
History
Date User Action Args
2013-03-24 00:54:29santa4ntsetrecipients: + santa4nt
2013-03-24 00:54:29santa4ntsetmessageid: <1364086469.6.0.100637021458.issue2033@psf.upfronthosting.co.za>
2013-03-24 00:54:29santa4ntlinkissue2033 messages
2013-03-24 00:54:29santa4ntcreate