Use DateTime object instead of string as timestamp