fix firefox datetime issue