anshumaantgi / StuBid

0 stars 0 forks source link

Date bug between android and IOS #11

Open bransometan opened 2 years ago

bransometan commented 2 years ago

new Date().toLocaleString() output differently in IOS and android

IOS : 07/07/2022, 15:32:50 Android: Thu Jul 7 15:32:50 2022

bransometan commented 2 years ago

import moment from "moment" Use moment().format('DD/MM/YYYY, HH:mm:ss ') instead of new Date().toLocaleString() to solve issue