//It can also changed to COMPANY TIMEZONES
public static utcDateTime endOfDay(utcDateTime _dateTime)
{
Timezone userTimeZone = DateTimeUtil::getUserPreferredTimeZone();
utcDateTime dateInTimeZone = DateTimeUtil::applyTimeZoneOffset(_dateTime, userTimeZone);
return DateTimeUtil::newDateTime(DateTimeUtil::date(dateInTimeZone), timeMax(), userTimeZone);
}
No comments:
Post a Comment