Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026299RunnerFunctionsPublic2017-04-24 17:182017-08-02 15:03
ReporterStewart Bishop 
Assigned ToFritz 
PriorityLowSeverityC - GeneralReproducibility100%
StatusClosedResolutionFixed 
PlatformOSOS Version
Summary0026299: Functions: date_get_week returns different weeks for specific dates depending on platform
DescriptionWhen investigating other date issues I noticed that date_get_week will always return a different date per platform eg 01/07/2015 will return 25 on Windows, 26 on HTML5 and if I check the week of the year on an external website it'll return 27.

This could be potentially down to how platforms do dates but ideally we should have some consistency.
Steps To Reproduce1) Run attached sample on Windows
2) Run attached sample on HTML5
1.4 Version
2.x Runtime Version2.0.6.72
2.x Runtime Version Verified In2.1.0.124
Attached Files? file icon gmtest-dates.yyz [^] (1,216,045 bytes) 2017-04-24 17:18

- Relationships

-  Notes
(0053183)
Mike Dailly (Manager)
2017-05-17 21:48

HTML5 is actually correct, Native is wrong.

Web page that returns week of year. 7/1/2015 = 26
http://www.onlineconversion.com/day_week_number.htm [^]


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker