Fixing a bug with offset hours being a float