Fixed possible timezone related issues by always using GMT timestamps for calculating offsets