mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-15 16:11:42 +00:00
fixup error parsing date/time
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@31128 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba81d9f082
commit
e307f93142
1 changed files with 4 additions and 2 deletions
6
MySQL.m
6
MySQL.m
|
@ -389,10 +389,12 @@ static unsigned int trim(char *str)
|
|||
length: size + 6
|
||||
encoding: NSASCIIStringEncoding];
|
||||
v = [NSCalendarDate dateWithString: s
|
||||
calendarFormat: @"%y"
|
||||
calendarFormat: f
|
||||
locale: nil];
|
||||
[s release];
|
||||
[v setCalendarFormat: @"%Y-%m-%d %H:%M:%S %z"];
|
||||
if ([self debugging] > 1)
|
||||
[self debug: @"Parsed '%@' as '%@'\n", s, v];
|
||||
[s release];
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue