Time value is one hour 'off' since DST

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

User avatar
dvanhussel
Ebase User
Posts: 161
Joined: Fri Oct 19, 2007 12:45 pm
Location: Haarlem, the Netherlands

Time value is one hour 'off' since DST

#1

Postby dvanhussel » Wed Apr 08, 2015 7:27 am

Hi,

We have a form that displays the time part of a datetime that is fetched from MSSQL. The data is fetched in a table with a column of type 'Time'. This worked as expected. Since Daylight Savings Time is in effect, the values are 'one hour off'.
When I run the sql query directly on the database server, I can see that the actual data is correct.

The strange thing is, that on our development server this problem does not occur. Here the correct data is displayed when using the same datasource.

The date/time settings on both (linux) server are the same (CEST), using ntp. The times logged in catalina.out on this server are also correct.

Is this a setting/configuration option in Ebase that prevents the production server from honouring DST?

For now I have fixed this by checking if DST is in effect in the script en substracting one hour if it is. But that's an ugly solution that should not be necessary.

Regards,

David
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Apr 08, 2015 8:51 am

David,

Can you check that have the following property in UfsSetup.properties:
Ufs.useSystemTimezone=true

Regards
Jon
0 x

User avatar
dvanhussel
Ebase User
Posts: 161
Joined: Fri Oct 19, 2007 12:45 pm
Location: Haarlem, the Netherlands

#3

Postby dvanhussel » Wed Apr 08, 2015 9:25 am

Hi Jon,

Thank you for your reply. No, it is not (on both servers). I will try and test this. As a restart is needed, I will do this after office-hours. I'll post the outcome here.

Regards,

David
0 x

User avatar
dvanhussel
Ebase User
Posts: 161
Joined: Fri Oct 19, 2007 12:45 pm
Location: Haarlem, the Netherlands

Fixed!

#4

Postby dvanhussel » Thu Apr 09, 2015 4:37 am

Hi Jon,

Adding this to UfsSetup.properties indeed fixed this issue.

Thank you!

Regards,

David
0 x


Who is online

Users browsing this forum: No registered users and 23 guests