Getting local time of different time zones
Use case
You need to get time based on the time zones.
Solution
Switch the page to the edit mode.
Insert the Table Transformer macro and paste the table or the macros outputting tables within the macro body.
Select the macro and click Edit.
In the Presets tab select Custom transformation and click Next.
Enter the following SQL query:
SQLClick Next.
- Define the date format .
Save the macro and the page.
The getTimezoneOffset() method returns the time difference between UTC time and local time, in minutes.
The NOW() function returns the current date and time.
The DATEADD() function adds a time/date interval to a date and then returns the date.
The FORMATDATE() function converts time/dates to the specified in the Table Transformer macro settings date format.