Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
2704 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am using now() to populate database to store current date time as modify time
ambrishs
Certified Senior Developer
over 8 years ago
I am using now() to populate database to store current date time as modify timestamp in DB. But it's storing value in GMT. How can I get value stored in LoggedInUser's timezone. For Ex: on 7/27/2015 at 8:20 PM EST it was stored as "2015-07-28 00:23:50" instead of "2015-07-27 20:23:50".
Another question I have is when I am using today() to default date value in form, after 8 PM in EST it's defaulting to next date. How do I handle this, to default to today in loggedinuser's timezone.
OriginalPostID-158832
OriginalPostID-158832
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 8 years ago
Did you have a look at the user date and time functions? See
forum.appian.com/.../Scripting_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
forum.appian.com/.../Scripting_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sonalk
over 8 years ago
Refer the similar post related to get logged in user's timezone :
forum.appian.com/.../e-154436
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 8 years ago
Hi Ambrish, Just a thought, one side effect of using the user local timezone in the database would be while generating the reports (any statistics) out of it. so generally its preferred to store the GMT timezone while storing to the DB and while displaying on the UI we can always use the user timezone.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel