<?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>Date values different between process model and database</title><link>https://community.appian.com/discussions/f/new-to-appian/28785/date-values-different-between-process-model-and-database</link><description>Hi, 
 My current system date and time is 5/25/2023 9:03 PM and also, I am passing now() to one of the pv variables (Image#1). 
 Image#1 
 
 But, when I try to see the db saved value, it was showing as &amp;quot;5/26/2023 01:03:40&amp;quot;. 
 Can someone advise me, where</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113307?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 02:14:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76d1c8e6-a35f-4614-8b2a-29a36a30205f</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;&lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/queries/at-time-zone-transact-sql?view=sql-server-ver16"&gt;learn.microsoft.com/.../at-time-zone-transact-sql&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113305?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 02:12:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3cfb84f-45f6-4da2-bbce-4a079ba0a50d</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;I am using SQL Server DB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113304?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 02:10:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e893a44-18d2-4126-922d-8196c0ac3352</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to do anything. It&amp;#39;ll get stored in the db as&amp;nbsp;2023-05-26 01:03 UTC.&lt;/p&gt;
&lt;p&gt;It&amp;#39;ll display to the user in whatever timezone they have set in their profile.&lt;/p&gt;
&lt;p&gt;If you need to do it at the db level,&amp;nbsp;you can use the following (assuming your are using MariaDB):&amp;nbsp;&lt;a href="https://mariadb.com/kb/en/convert_tz/#:~:text=CONVERT_TZ()%20converts%20a%20datetime,be%20loaded%20(see%20mysql_tzinfo_to_sql)"&gt;https://mariadb.com/kb/en/convert_tz/#:~:text=CONVERT_TZ()%20converts%20a%20datetime,be%20loaded%20(see%20mysql_tzinfo_to_sql)&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113303?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 01:55:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8eaebd6-526f-40d0-8f7b-2b54c278e108</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Right now, current date and time is &amp;quot;&lt;span&gt;5/25/2023 9:03 PM&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I want to keep the same value everywhere, do I need to convert before saving to db or do I need to convert while displaying.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any further advises.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113302?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 01:50:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2526d9e8-021b-4f95-afd1-eb3e766d7405</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Not sure if I&amp;#39;m understanding correctly. You want your database dates to be stored in EST?&lt;/p&gt;
&lt;p&gt;Storing dates in UTC and then displaying them in the user context timezone is the standard way of doing things (not just in Appian but in most systems).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113301?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 01:45:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3130f2b7-f688-44de-867e-2e49771b9210</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Thanks for replying for my post.&lt;br /&gt;I have to keep values in EST. Is there any way, I can keep both values same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date values different between process model and database</title><link>https://community.appian.com/thread/113300?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 01:37:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85293ed8-cac3-4af8-8675-a71197cac560</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Date and times stored in the db are in UTC. now() is displayed in your local timezone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>