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
8 replies
Subscribers
5 subscribers
Views
2826 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, Am using export to excel plugin - getdatasubsetdownloadlinkfromru
madhubindug
over 9 years ago
Hi,
Am using export to excel plugin - getdatasubsetdownloadlinkfromrule to export report data into excel. I am facing issue with incorrect date time stamp after exporting the data into excel. For ex: In report UI it is 10/31/2015 5:53 AM PDT and after exporting it is 10/31/2015 12:53:48 PM in the excel sheet. PFA attached snap of the report. Any suggestions to resolve this issue.
Thanks,
Madhu
Issue Snap Shot.docx
OriginalPostID-176107
OriginalPostID-176107
Discussion posts and replies are publicly visible
0
Tom Ryan
Appian Employee
over 9 years ago
It looks like the time that is exported to the report is converted to GMT. Depending on your report configuration you can probably work around this by using the local() function.
Another alternative could be the Download DataSubset plugin:
forum.appian.com/.../Download_DataSubset_Plugin.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
madhubindug
over 9 years ago
Yes, am using ExportableDataSubset plugin and below is the code i have modified using local(), its giving 500 internal server error:
c2:apply(rule!BWIS_WF_REP_convertToLocal,local!datasubsetNew.data.c2)
convertToLocal code - if(or(isnull(ri!dateInput),ri!dateInput=""),ri!dateInput
local(ri!dateInput,"PDT"))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kumaraveln
over 9 years ago
@ryan: Please tell us if this understanding is correct.
1. Say my date time value for a record is 5Nov2015 10:30 AM in database (which is GMT)
2. When I query the entity and form the data subset, date and time will come unchanged
3. When apian renders the value in grid, it converts it to user preferred time zone, which in our case is PDT.
So user will see something like 5Nov2015 02:30 AM PDT (- 8 hrs)
4. Now when I try to export to excel, the plugin takes the source data from my datasubset because of which it is displaying the date time value present in DB instead of the one in UI.
5. But for user it looks odd to see the conflict between UI and excel although time zone is specified in UI. (We noticed that wherever a time is in GMT, zone not explicitly mention. Both in table and excel. May be this something usual. But end user may be confused on this)
Now we are not clear with #2 and #3.
Whether the date time value will be converted to preferred time zone at the point of querying (when obtaining datasubset) or rendering in grid.
If datasubset itself is having date and time in PDT, then should we check if the plugin is trying to convert it back to GMT at some point.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
madhubindug
over 9 years ago
its +8 hours
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
For a detailed description of how dates/times are converted, check out the docs here:
forum.appian.com/.../Time_Zone_Context.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kumaraveln
over 9 years ago
Thanks ryan. That helped a little in understanding. But sure how to resolve the issue now.
PFA .. Found a small spell err in the documentation .. if you are interested :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kumaraveln
over 9 years ago
*But not sure how to resolve the issue now.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
I think you can get around this behavior by using the local() function
forum.appian.com/.../Date_and_Time_Functions.html
You would need to change the report column definition to local( XXX ) where XXX is the current value. Then you should see the datetime exported in the local timezone.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel