Fixed cross-browser datetime issues