Make sure to convert the time to a string.