Fix converting DateTime to minutes for cache TTL