updated to use date object to be serialized including time