View Issue Details

IDProjectCategoryView StatusLast Update
0029176FPCRTLpublic2015-12-26 15:00
ReportermjustinAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWindowsOSOS Version
Product Version3.0.0Product Build 
Target Version3.0.2Fixed in Version3.1.1 
Summary0029176: LocalTimeToUniversal returns wrong value
DescriptionMy 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 Reproducein a GUI application use ShowMessage(DateTimeToStr(LocalTimeToUniversal(Now))); to display the current UTC time
Additional InformationRelated: http://mantis.freepascal.org/view.php?id=24752 (marked as resolved in 3.0.0)
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
Attached Files

Relationships

related to 0024752 resolvedMichael Van Canneyt UniversalTimeToLocal applies minutes offset in the wrong direction from UTC 

Activities

Michael Van Canneyt

2015-12-26 15:00

administrator   ~0088271

Is already fixed in trunk

Issue History

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