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
7 replies
Subscribers
7 subscribers
Views
2786 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
This may just be a UK specific question. Does anyone know why hour(no
steveb
over 8 years ago
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
Discussion posts and replies are publicly visible
Parents
0
Lakshmi Meyyappan
over 8 years ago
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'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()
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Lakshmi Meyyappan
over 8 years ago
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'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()
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data