Fix date not being StdClass (ticket 2 in UserVoice)