<?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>This may just be a UK specific question.  Does anyone know why hour(no</title><link>https://community.appian.com/discussions/f/rules/5331/this-may-just-be-a-uk-specific-question-does-anyone-know-why-hour-no</link><description>This may just be a UK specific question. Does anyone know why hour(now()) returns the GMT hour and not the BST hour and is there a way to get the correct (ie BST hour) ? OriginalPostID-155590 OriginalPostID-155590</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19910?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 17:10:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:94fabd23-bbce-486e-ada5-cd0d7c6d1b6a</guid><dc:creator>steveb</dc:creator><description>Thanks for the advice. &lt;br /&gt;&lt;br /&gt;Our internationalisation setting is set to UK time. &lt;br /&gt;&lt;br /&gt;Wrapping now() in local() before using hour() is giving the right answer so will use this method.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19908?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 16:50:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45e231fd-b9c8-45df-9149-346672357960</guid><dc:creator>Tim</dc:creator><description>Have a good read of this!&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.9/Date_and_Time_Functions.html"&gt;forum.appian.com/.../Date_and_Time_Functions.html&lt;/a&gt;&lt;br /&gt;It&amp;#39;s a complicated structure depending on what you&amp;#39;re trying to do. There are functions such as local() and offsetfromGMT() that allow you to calculate date/time values in various circumstances.&lt;br /&gt;Also check your installation server, is it set to GMT and/or to adjust for daylight savings? You will also need to check your timezone settings in the JBoss boot script.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19906?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 16:33:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ea63e94-fe33-4585-88f5-fffda446db8c</guid><dc:creator>Lakshmi Meyyappan</dc:creator><description>But even checking that box will still return the GMT value from now(), it will just be displayed differently. Using local() adds an offset to change the actual datetime value rather than just it&amp;#39;s display. If you run local(now()) then it actually looks wrong because the datetime is returned in your time zone and then Appian tries to display it in your time zone again. But the underlying value is what you need to use in order to perform operations on it such as hour()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19905?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 16:25:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f87c4192-3e04-4b46-b556-4ff7ab9ea3c6</guid><dc:creator>Lakshmi Meyyappan</dc:creator><description>What is your user&amp;#39;s timezone setting? I changed my user&amp;#39;s time zone  a couple of times and watched the now() function change what it returned. This backs up my theory that the now() function actually returns only the GMT value, but Appian is set up to display datetimes in the user&amp;#39;s time zone so the now() result is displayed as such. If you want Appian to always use the time zone set on the internationalization tab then there is a checkbox on that tab to &amp;quot;Always overrude users&amp;#39; selected time zone&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19902?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 16:20:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d5184a6-279d-46e8-a955-bfdc4f350f94</guid><dc:creator>PhilB</dc:creator><description>I don&amp;#39;t believe that&amp;#39;s the case at all. I&amp;#39;ve just run now() without local() and it returns 08/07/2015 13:18 GMT+01:00 - which is the BST value. The timezone under internationalization on the system tab) is set to (UTC) United Kingdom Time (Europe/London).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19901?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 16:16:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00f2120a-caf6-4091-9ba9-6324c321a7e6</guid><dc:creator>Lakshmi Meyyappan</dc:creator><description>I don&amp;#39;t know exactly why, but I believe the now() function only returns the GMT datetime. The system generally displays it in your local time, but when you take specific numbers like the hour then it is actually using the returned GMT datetime.&lt;br /&gt;To correct it simply use hour(local(now())). Wrapping now() in local() will add the necessary datetime offset to the GMT datetime.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This may just be a UK specific question.&lt;br /&gt;&lt;br /&gt;Does anyone know why hour(no</title><link>https://community.appian.com/thread/19900?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 16:15:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0173865d-3afc-4020-a59f-23c98cc44a06</guid><dc:creator>PhilB</dc:creator><description>Apologies if this is an obvious question, have you checked the internationalisation settings on the server?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>