Use as LocalDateTime Global Property?

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Use as LocalDateTime Global Property?

Postby bjorne.raga » Wed Feb 21, 2024 6:12 pm

I was looking at the following docs:
https://wiki.servoy.com/display/DOCS/Locale+Settings

and it mentions that the property “servoy.use.client.timezone” does not work in NG. Would anyone happen to know if this is still true or is there any other way to globally set date columns to use the local time zone? Or do we have to manually change every date column in our database to use local date time?
bjorne.raga
 
Posts: 6
Joined: Thu Oct 19, 2023 7:37 pm

Re: Use as LocalDateTime Global Property?

Postby darren » Mon Apr 22, 2024 7:55 pm

Back when we started using Servoy (NG) in 2019, for the JSField (Calendar), we were told to use the property useLocalDateTime:true, which was found in Servoy Developer as a checkbox on the Calendar object's format dialog window. And that would need to be set for every single Calendar object we placed on every single form. So we weren't aware of a Global setting for that.

To tack on to this post, we recently upgraded from Developer 2020.06 to 2023.03-LTS and just noticed that the useLocalDateTime checkbox is no longer there. So somewhere along the way, the component changed. While the existing Calendar objects on the existing forms appear to be working properly, any new Calendar objects (on new or existing forms) can only be configured 'manually' by typing the desired parameters into the component's property format box.

{"displayFormat":"dd-MM-yyyy","useLocalDateTime":true}

Because if you use the format dialog window to set a desired property, such as "displayFormat" to change the date formatting, the "useLocalDateTime" will be lost.

I've looked around for related documentation for this loss of the "useLocalDateTime" checkbox, but no luck so far. Can anyone shed some light on how to configure this going forward?
darren
 
Posts: 27
Joined: Mon Nov 01, 2021 11:10 pm


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 21 guests