Fixed JS date/time handling

2 jobs for master
Status Name Job ID Coverage
  Build
canceled build_clazy_clang_tidy #152216

canceled linux kf5-qt5 qt5.15 #152215