Hello,
I am looking for a solution that can help with building out date logic that will work on both Designer and Gallery.
The issue that has come up is that our developers are spread out around the globe in different time zones and are using DATETIME logic to define end of business days and month end reporting. Their data is flowing through in their local time zones but when publishing to Gallery, our workers are set to UTC so their results are not accurate.
Here is an example where we had an issue once the workflow was published to Gallery that is set to UTC time:
The input is a table with last business day dates where we are looking for the corresponding [Date] to the current month.
This was ran at 8:15 CST on 11/30 and the server datetime function was trying to pull December.
DateTimeAdd(DateTimeFirstOfMonth(),0,"month")= DateTimeTrim([Date],"month")
8:15PM CST 11/30 is December for UTC.
It would appear that its taking into account the server timezone.
Is there a way to set a workflows or scripts timezone?
Basically, I am looking to solve two things:
- How to convert from UTC to a different time zone that observes daylight savings time in a way that doesn't hard code dates
- Have a workflow recognize what time zone it is in so that it will run successfully on both their local machines and on Gallery
If you have solutions for either one, it is greatly appreciated!