First, are you working in different time zones or can you assume a single timezone?
Second, Can you use server time instead?
(I would prefer server time over device time if possible. Device time can be off and can therefore show the wrong office open/closed state)