Bug #63812 | MySqlDateTime.GetDateTime() does not specify Timezone for TIMESTAMP fields | ||
---|---|---|---|
Submitted: | 20 Dec 2011 18:44 | Modified: | 29 Feb 2012 19:16 |
Reporter: | Alex K. | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.4.4 | OS: | Any |
Assigned to: | Gabriela Martinez Sanchez | CPU Architecture: | Any |
[20 Dec 2011 18:44]
Alex K.
[13 Jan 2012 18:00]
Reggie Burnett
I think we will just make this change for timestamp values since a user can easily submit a datetime value that is already uTC. We don't want to make any assumptions about the tz of the values users are storing in there datetime columns.
[13 Jan 2012 18:08]
Alex K.
Yes, my intention was to have this fixed for TIMESTAMP fields because the documentation clearly states a timezone for them. The DATETIME field should continue to not specify a timezone because it, obviously, can be any timezone.
[29 Feb 2012 19:16]
John Russell
Added to changelog for 6.5.0: The MySqlDataReader.GetDateTime() method was not recognizing that TIMESTAMP values had already been converted to the local time zone of the MySQL server, which could cause incorrect results if the value was later processed through the ToLocalTime() method. The fix causes the Kind property to be correctly set to Local rather than Unspecified.