Use DateTime object instead of string as timestamp

Not sure if this ever worked, but a customer pointed out that this fails because we expect a DateTime object, not a string, in the client functions. All the other examples use DateTime already.