Wednesday, 24 June 2015

Date getting one day less in HCMEmploymentEmployee table because of the timezone.
Following syntax will resolve this issue.

probationDate = DateTimeUtil::date(DateTimeUtil::applyTimeZoneoffset (hcmEmploymentEmployee.ProbationEndDate, DateTimeUtil::getUserPreferredTimeZone()));

No comments:

Post a Comment