Skip to main content
1-Visitor
July 10, 2017
Question

Change the time zone

  • July 10, 2017
  • 1 reply
  • 2244 views

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?

1 reply

1-Visitor
July 10, 2017

But change the TimeZone where? On Server, on Client Browser,... ?

vsrilekha1-VisitorAuthor
1-Visitor
July 10, 2017

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

1-Visitor
July 10, 2017

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.