I am working on a requirement to update a field if the
LastModifiedDate lies within the Business hours of the user, viz. Monday to Friday between 8 AM to 5 PM.
I have tried using the
BusinessHours class alongwith
isWithin method, but the calculation is based upon the timezone defined in the
For example, the
BusinessHours are defined in EST TimeZone, but user is working in IST timezone.
Do I need to create business hours records for all the applicable timezone(worldwide application support).
Is there any other simpler way to implement this, so that the constant working hours can be applied to all the user timezones?
Any help would be appreciated.