Fix conversion for time for expiring