servoy 3.1.6
date display is off by one day on OS X vs windows.
it is not consistent. There are 14 date fields on the form, and only one or two are off
all are formatted the same MM/dd/yyyy
a SQL query thru sybase central shows dates are correct
dates are all set by a method, starting from date 01, and adding a fixed number of days, in miliiseconds
very strange. any suggestions appreciated
thanks,
greg
antonio
2
Have you checked the timezone settings in Servoy Prefs?
This may answer the original post. Not sure if it is a javascript bug, or not
My method increments a start date, by weeks, by adding 86,400,000 * 7, the number of milliseconds in a week
this works only for the first four or five weeks, then loses one day
so, I added 15 minutes to my constant, and it works (86,400,000 * 7 + 900,000)
this work-around should fail after 96 weeks, but I only need 14 weeks.
(variables are date objects, and sybase fields are of type “date”)
greg