Post

2 followers Follow
0
Avatar

Strange Date Value exported from Outbound Call

Hi Guys,

I have configured a Workflow rule at WorkItem which would export Task "Actual End Date" through Outbound Call while "% Complete" is 100% and "Actual End Date" has value.

However, the extract date value is quite strange, let's say the "Actual End Date" is marked as "21 APR 2017", the value extracted would become '2017-04-20T16:00:00' and '2017-04-21T10:00:00' later on.

From my point of view, the value is expected to be '2017-04-21T00:00:00', can anyone tell me why would this happen? (Timezone is UTC+08:00)

Sam

Sam Fu Answered

Please sign in to leave a comment.

4 comments

0
Avatar

Every date is actually storing time as well and is stamped as UTC 0:00, and then adjusted for time zone. So let's say you set the date April 6th, 2017. That gets logged as April 6th, 2017 0:00:00 EST (UTC +8) into the Clarizen UI. In the database this is stored as April 6th, 2017 8:00:00 UTC. Then when an end user views this date, it gets adjusted for their time zone on their computer. If they are set to UTC +8, then it comes back as April 6th 2017 0:00:00. If the time zone is off either in system settings or the end user's computer, it can offset the dates by one day--so this is something to watch out for.

As for your specific scenario, your working hours might be factoring in. If working hours begin at 8:00:00, then UTC +8 would set this to 16:00:00 UTC. You would then have to convert this number back from UTC to your time zone. Hope this makes sense, I know it can get pretty complicated.

Josh Santos 0 votes
Comment actions Permalink
0
Avatar

Hi Josh,

 

Can i conclude that for all Clarizen Date/DateTime fields, if the Time Zone is UTC+08:00, we just need to add 8 hours to the Datetime value retrieved from corresponding XML file before further processing?

 

Regards,

 

Sam

 

Sam Fu 0 votes
Comment actions Permalink
0
Avatar

As long as the working hours and time zone do not change, that should do the trick. Keep in mind that if live in an area that has Daylight Savings, your formulas/rules would have to change when this goes into effect. The server times are always in UTC.

Josh Santos 0 votes
Comment actions Permalink
0
Avatar

Hi Josh, 

Thanks very much for the clarification. 

Regards,

Sam

Sam Fu 0 votes
Comment actions Permalink