anshumaantgi / StuBid

0 stars 0 forks source link

Date bug between android and IOS #11

Open bransometan opened 1 year ago

bransometan commented 1 year 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 1 year ago

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