<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SQL collection query - issue with timezones in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-collection-query-issue-with-timezones/m-p/6868#M2966</link>
    <description>&lt;P&gt;I have an API that returns me certain items with corresponding dates.&lt;BR /&gt;They come in this format&amp;nbsp;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;2024-06-12T13:00:00.000+02:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I turn them into a SQL collection, all is well.&lt;BR /&gt;However I get an issue when I query the SQL collection, as it suddenly returns&amp;nbsp;&lt;SPAN&gt;2024-06-12T11:00:00.000000+02:00.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried formulas like to_time or strftime formulas, but I can't seem to fix this.&lt;/P&gt;&lt;P&gt;Preferably I would like to get an output of&amp;nbsp;&lt;SPAN&gt;2024-06-12 13:00:00.000 , without the T (not necessarily) but also without the time zone.&lt;BR /&gt;As I later do an upsert into a SQL database, this would need to be fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For "now" I do&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;now.in_time_zone("Europe/Brussels").strftime("%Y-%m-%d %H:%M:%S.%L")&lt;/LI-CODE&gt;&lt;P&gt;, and this works for my own timestamp.&lt;BR /&gt;But I can't seem to figure out how to fix this in the SQL collection.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 13:06:33 GMT</pubDate>
    <dc:creator>mlamotte</dc:creator>
    <dc:date>2024-06-12T13:06:33Z</dc:date>
    <item>
      <title>SQL collection query - issue with timezones</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-collection-query-issue-with-timezones/m-p/6868#M2966</link>
      <description>&lt;P&gt;I have an API that returns me certain items with corresponding dates.&lt;BR /&gt;They come in this format&amp;nbsp;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;2024-06-12T13:00:00.000+02:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I turn them into a SQL collection, all is well.&lt;BR /&gt;However I get an issue when I query the SQL collection, as it suddenly returns&amp;nbsp;&lt;SPAN&gt;2024-06-12T11:00:00.000000+02:00.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried formulas like to_time or strftime formulas, but I can't seem to fix this.&lt;/P&gt;&lt;P&gt;Preferably I would like to get an output of&amp;nbsp;&lt;SPAN&gt;2024-06-12 13:00:00.000 , without the T (not necessarily) but also without the time zone.&lt;BR /&gt;As I later do an upsert into a SQL database, this would need to be fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For "now" I do&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;now.in_time_zone("Europe/Brussels").strftime("%Y-%m-%d %H:%M:%S.%L")&lt;/LI-CODE&gt;&lt;P&gt;, and this works for my own timestamp.&lt;BR /&gt;But I can't seem to figure out how to fix this in the SQL collection.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:06:33 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/sql-collection-query-issue-with-timezones/m-p/6868#M2966</guid>
      <dc:creator>mlamotte</dc:creator>
      <dc:date>2024-06-12T13:06:33Z</dc:date>
    </item>
  </channel>
</rss>

