View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0029176 | FPC | RTL | public | 2015-12-12 19:31 | 2015-12-26 15:00 |
Reporter | mjustin | Assigned To | Michael Van Canneyt | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Windows | ||||
Product Version | 3.0.0 | ||||
Target Version | 3.0.2 | Fixed in Version | 3.1.1 | ||
Summary | 0029176: LocalTimeToUniversal returns wrong value | ||||
Description | My local time zone is UTC+1, so when it is 16:30 here, this line ShowMessage(DateTimeToStr(LocalTimeToUniversal(Now))); displays the correct value "12.12.2015 15:30" with Lazarus 1.4.2 / Free Pascal 2.6.4. With Free Pascal 3.0.0 (Lazarus 1.6RC1) it displays "12.12.2015 17:30", two hours later. | ||||
Steps To Reproduce | in a GUI application use ShowMessage(DateTimeToStr(LocalTimeToUniversal(Now))); to display the current UTC time | ||||
Additional Information | Related: http://mantis.freepascal.org/view.php?id=24752 (marked as resolved in 3.0.0) | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
FPCOldBugId | |||||
FPCTarget | |||||
Attached Files |
|
related to | 0024752 | resolved | Michael Van Canneyt | UniversalTimeToLocal applies minutes offset in the wrong direction from UTC |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-12-12 19:31 | mjustin | New Issue | |
2015-12-12 19:43 | Jonas Maebe | Relationship added | related to 0024752 |
2015-12-12 19:43 | Jonas Maebe | Assigned To | => Michael Van Canneyt |
2015-12-12 19:43 | Jonas Maebe | Status | new => assigned |
2015-12-26 15:00 | Michael Van Canneyt | Note Added: 0088271 | |
2015-12-26 15:00 | Michael Van Canneyt | Status | assigned => resolved |
2015-12-26 15:00 | Michael Van Canneyt | Fixed in Version | => 3.1.1 |
2015-12-26 15:00 | Michael Van Canneyt | Resolution | open => fixed |
2015-12-26 15:00 | Michael Van Canneyt | Target Version | => 3.0.2 |