# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1300151609 0 # Node ID d3fb3613726a46ea856a4706f98c4faad59abb9f # Parent 6712e4211522bbaa755179764592fede2f889428 Calendar control should return years with 4 digits not 2. diff -r 6712e4211522 -r d3fb3613726a mac/dw.m --- a/mac/dw.m Tue Mar 15 00:45:27 2011 +0000 +++ b/mac/dw.m Tue Mar 15 01:13:29 2011 +0000 @@ -5071,6 +5071,14 @@ [df setDateStyle:NSDateFormatterShortStyle]; NSString *nstr = [df stringFromDate:date]; sscanf([ nstr UTF8String ], "%d/%d/%d", month, day, year); + if(*year < 70) + { + *year += 2000; + } + else if(*year < 100) + { + *year += 1900; + } [df release]; }