Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi all,
I have a requirement where I need to change the time zone of the datetime from EDT to CDT. How to achieve that?
But change the TimeZone where? On Server, on Client Browser,... ?
var dateValue = new Date();
// dateFormat(dateValue:DATETIME,dateFormat:STRING):STRING
var formattedDate = dateFormat(dateValue,'yyyy-MM-dd hh:mm zzz');
var result = formattedDate;
It's automatically coming in EDT
While I want it in CDT
With TW TimeZone limitations we had faced
Client Side ( Browser ) on TW it's ALWAYS in User's Browser Selected TimeZone
Server Side ( TW Server Runtime ) on TW it's ALWAYS in Server System TimeZone.
No more options Out-Of-The-Box.
As we needed real TimeZone support we had to Customize ALL DateTime Widgets to support TimeZone as a binding target ( Grid, DateTimePicker, TimeSeries, ValueDisplay,... ). And Also to support on server side we had to build a Java extension leveraging JODA time library which it's already in place.
Hope it helps
Carles.