This is probably basic, but I can't seem to think straight when it comes to offset.
Currently, I display time by converting datetime from db like this:
date('g:i A', strtotime($given_date));
However, now I get an additional value from db, which UTC shows offset time in minutes, Currently it is: $offsetTime = -300;
So, to get the current local time, in this case I need to subtract, something like this
date('g:i A', strtotime($given_date) - $offsetTime * 60);
But what if offset is a positive number?