<?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>whats the impact of converting GMT to EST Timezone in Database?</title><link>https://community.appian.com/discussions/f/data/26382/whats-the-impact-of-converting-gmt-to-est-timezone-in-database</link><description>Currently, we have the database time set as GMT which is four hours away from the Eastern time zone. We are running into issues with Time based search and bots processing of cases for a certain day since the server time is different. 
 1. Is it possible</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: whats the impact of converting GMT to EST Timezone in Database?</title><link>https://community.appian.com/thread/135760?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 12:28:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97a825cc-8619-4142-8595-998fb67d89e9</guid><dc:creator>davidkessler</dc:creator><description>&lt;p&gt;We use Oracle&amp;#39;s FROM_TZ in a database view for troubleshooting (the view has both Appian&amp;#39;s original UTC timestamps and generated local timestamps). This helps humans troubleshoot status/history tables from the&amp;nbsp;database. I can see how using CONVERT_TZ for a similar use case in MariaDB could be helpful (especially&amp;nbsp;if you prefer using named zones instead of offsets).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: whats the impact of converting GMT to EST Timezone in Database?</title><link>https://community.appian.com/thread/103557?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 17:12:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91682788-5df0-4d32-8dc6-612d3eb435e3</guid><dc:creator>jasmithak</dc:creator><description>&lt;p&gt;We are using maria db.&amp;nbsp;so not able to use the solution which is shared in mssqltips. and tried convert_tz function output is coming as null. is there a way to do in maria db.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: whats the impact of converting GMT to EST Timezone in Database?</title><link>https://community.appian.com/thread/103551?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 14:53:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:14302b10-61bd-4753-be2d-f8b61ad7b356</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;It sounds like the functions querying data are external to Appian, where Appian is designed to store all datetime values as UTC and automatically convert them back to the local timezone for display/usage in Appian.&amp;nbsp; If you update the datetime values manually in the DB to local, in technical terms, your data will be all screwed up.&lt;/p&gt;
&lt;p&gt;I implemented&lt;a href="https://www.mssqltips.com/sqlservertip/3173/handle-conversion-between-time-zones-in-sql-server-part-1/"&gt; this method to convert UTC dates to EST from mssqltips.com&lt;/a&gt;&amp;nbsp;and it works great if you rely on EST/EDT always.&amp;nbsp; This creates a function you can wrap your datetime fields in for queries/reporting outside of Appian, such as views, or any direct database administration.&amp;nbsp; However, I do also use it for reporting in Appian where I need to aggregate datetime values by month, day, year&amp;nbsp;to get an accurate integer value into a view to return to Appian.&amp;nbsp; E.g., if you use something in a view such as DATEPART in MSSQL,&amp;nbsp;you can see the difference as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="sql"&gt;SELECT DATEPART(month,&amp;#39;2022-10-01 02:00:00.000&amp;#39;) --10
SELECT DATEPART(month,dbo.fn_ConvertUTCToLocal(&amp;#39;2022-10-01 02:00:00.000&amp;#39;)) --9&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: whats the impact of converting GMT to EST Timezone in Database?</title><link>https://community.appian.com/thread/103550?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 14:31:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c527e1c5-887f-47a0-aef9-60bffb6f5b92</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;DB time values are stored in UTC (essentially the same as GMT but some subtle differences do exist if you look it up); this is, AFAIK, fairly industry-standard, and should be assumed in your application design.&amp;nbsp; Appian makes it trivially easy to convert stored time values back to the local timezone (or a hardcoded one) if/when needed.&amp;nbsp; I&amp;#39;d estimate that very very few use cases are enough of an emergency that they&amp;#39;d warrant hardcoding the DB to store EST times.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you provide more details as far as the issue you&amp;#39;re running into?&amp;nbsp; Are these searches/bots retrieving DB data in some unusual way? AFAIK datetime-based query values from Appian will autoconvert their values such that you&amp;#39;d get expected results.&amp;nbsp; Sometimes filtering on datetime fields when feeding in only a date value would need a (pretty simple, tbh) conversion to get the &amp;quot;date boundaries&amp;quot; exactly right in the query result - but I know of no cases where this requires the DB to be in EST, nor any where such conversion would actually make anything easier in the long run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>