Table Filter, Charts & Spreadsheets for Confluence Table Transformer Custom Transformation - use cases with advanced SQL queries Data searching, filtration, and formatting with SQL Current: Getting local time of different time zones PDF Download PDF Download page Getting local time of different time zones. Current page All pages Getting local time of different time zones Use caseYou need to get time based on the time zones.SolutionSwitch 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: SELECT *, FORMATDATE(DATEADD(hour, T1.'GMT' + (T1.'Created'::Date->getTimezoneOffset() / 60), T1.'Created')) AS 'My Time', FORMATDATE(DATEADD(hour, T1.'GMT' + ("today"::Date->getTimezoneOffset() / 60), NOW())) AS 'Current Time' FROM T1 SQL Click 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. ×