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
6 replies
Subscribers
5 subscribers
Views
2937 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Having difficulties displaying dates across different timezones. Used
Cyril
over 12 years ago
Having difficulties displaying dates across different timezones.
Used 'usertimezone(pp!initiator)' to capture the initiator's timezone (stored in a text field).
When we display the dates in subsequent screens we use 'local (pv!datetime,timezone) This does not display the correct time.
Now store the dates as text - yes they display correctly, but now have a new problem.
We use the pv!date_time values for validation. If we hide the date_time fields validation fails, if we display date_time, validation works but we have confusion showing allt he dates.
How can we get one solution that will work?...
OriginalPostID-39381
OriginalPostID-39381
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 12 years ago
I am attaching an example application that shows an approach you can use to meet this requirement. Let me explain this with the example:
1. Create a date time field in the form so the user can introduce the desired date and time (you already have this)
2. In that same form create an hidden input or a custom output to store the user time zone: usertimezone(pp!initiator)
---> The result will be stored in a process variable of type text. In my example the text variable is called initiatorTimeZone
*** 3. In the form where you are going to display this information in the original time zone you need to configure the "Refresh default values every time the task form is viewed" in the "Other" tab of the User Input Task properties.
5. In that same form create a date time field and use the following expression as the default value:
=local(gmt(pv!myDateTime,usertimezone(loggedInUser())),pv!initiatorTimeZone)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 12 years ago
I am attaching an example application that shows an approach you can use to meet this requirement. Let me explain this with the example:
1. Create a date time field in the form so the user can introduce the desired date and time (you already have this)
2. In that same form create an hidden input or a custom output to store the user time zone: usertimezone(pp!initiator)
---> The result will be stored in a process variable of type text. In my example the text variable is called initiatorTimeZone
*** 3. In the form where you are going to display this information in the original time zone you need to configure the "Refresh default values every time the task form is viewed" in the "Other" tab of the User Input Task properties.
5. In that same form create a date time field and use the following expression as the default value:
=local(gmt(pv!myDateTime,usertimezone(loggedInUser())),pv!initiatorTimeZone)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data