fix date problem with javascript

datetime serialization is incompatible with javascript date which needs a string representation as RFC2822 or ISO 8601
@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse

therefore we override the date output of the default datetime serialization with RFC2822 output.