Properly calculate GMT time in kore_date_to_time()