Bug #41021 | DateTime format incorrect | ||
---|---|---|---|
Submitted: | 25 Nov 2008 17:10 | Modified: | 9 Dec 2008 15:11 |
Reporter: | Matthew Lord | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 5.2.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[25 Nov 2008 17:10]
Matthew Lord
[2 Dec 2008 11:23]
Stefano Sapienti
I took a look at the 5.2.5 source code and I found that the "mistake" is on line 259 of MySQLDateTime.cs, in SerializeText method I replaced val = String.Format("{0} {1:00}:{2:00}:{3:00}", val, value.Hour, value.Minute, value.Second); with val = String.Format("{0} {1:00}:{2:00}:{3:00}", val, value.Hour, value.Minute, value.Second); I tested it and it seems to work. I'll make some more test, I hope it helps.
[3 Dec 2008 17:29]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/60520
[3 Dec 2008 17:31]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/60521
[3 Dec 2008 17:32]
Reggie Burnett
fixed in 5.1.8, 5.2.6+
[9 Dec 2008 15:11]
Tony Bedford
An entry was added to both the 5.1.8 and 5.2.6 changelogs: The DATETIME format contained an erroneous space.