fix dateformatter

maths is hard

we need javascript tests