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()));
Following syntax will resolve this issue.
probationDate = DateTimeUtil::date(DateTimeUtil::applyTimeZoneoffset (hcmEmploymentEmployee.ProbationEndDate, DateTimeUtil::getUserPreferredTimeZone()));
No comments:
Post a Comment