<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>why is &amp;quot;timezone()&amp;quot; giving a different value as the offset from GMT?</title><link>https://community.appian.com/discussions/f/data/40487/why-is-timezone-giving-a-different-value-as-the-offset-from-gmt</link><description>I am a little puzzled here. 
 I need to check if a dateTime value is past a given hour of the day. But there is an issue, since it has an unpleasant behaviour : since we updated to summer time, it is wrong by 1 hour ! 
 In my record type (and user interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: why is "timezone()" giving a different value as the offset from GMT?</title><link>https://community.appian.com/thread/154876?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2026 09:10:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50fa37a3-1020-47c0-924c-67d92afbc44a</guid><dc:creator>julienc</dc:creator><description>&lt;p&gt;I was able to fix the issue by comparing a datetime() with a now() normalized with local().&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;a!localVariables(&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;&amp;nbsp; local!nowLocal: local(now()),&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;&amp;nbsp; local!today17: datetime(&lt;br /&gt;&amp;nbsp; &amp;nbsp; year(local!nowLocal),&lt;br /&gt;&amp;nbsp; &amp;nbsp; month(local!nowLocal),&lt;br /&gt;&amp;nbsp; &amp;nbsp; day(local!nowLocal),&lt;br /&gt;&amp;nbsp; &amp;nbsp; 17, 0, 0&lt;br /&gt;&amp;nbsp; ),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;&amp;nbsp; local!isAfter17h: local!nowLocal &amp;gt; local!today17,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;&amp;nbsp; local!dayEnd: todate(local!nowLocal) + if(local!isAfter17h, 1, 0),&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why is "timezone()" giving a different value as the offset from GMT?</title><link>https://community.appian.com/thread/154869?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2026 06:06:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee96c4b1-cf1f-4a65-9347-8db930d6f31c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Seems like you try to do your own date&amp;amp;time calculations. Most of the time, this is a bad idea. I tried to cover most of the date&amp;amp;time related tricks in this blog post:&amp;nbsp;&lt;a href="https://appian.rocks/2023/02/13/working-with-time-in-appian/"&gt;https://appian.rocks/2023/02/13/working-with-time-in-appian/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why is "timezone()" giving a different value as the offset from GMT?</title><link>https://community.appian.com/thread/154865?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2026 05:00:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91fc23ec-dc89-4885-8ce0-ef8d06e6b96c</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;timezone() returns only the winter-time base offset and does not automatically account for daylight saving time.&lt;br /&gt;Use &lt;br /&gt;local!heure: hour(local(local!dateBegin))&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/26.5/fnc_date_and_time_local.html"&gt;local()&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why is "timezone()" giving a different value as the offset from GMT?</title><link>https://community.appian.com/thread/154860?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2026 19:14:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2e61eae-f584-48bb-972c-858780ad9a04</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Have you tried just using &lt;strong&gt;&lt;em&gt;local()&lt;/em&gt;&lt;/strong&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>