fixed js on datetime