3 Replies Latest reply on Jul 10, 2017 4:57 AM by carlesc RSS
    vsrilekha Newbie

    Change the time zone

    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?

      • Re: Change the time zone
        carlesc Ninja

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

          • Re: Change the time zone
            vsrilekha Newbie

            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

              • Re: Change the time zone
                carlesc Ninja

                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.