Skip to content

Releases: freshworks-oss/dayjs

FD-1.11.13

Choose a tag to compare

@ahamedalthaf ahamedalthaf released this 18 Nov 11:50
9aec53b

What's Changed

Full Changelog: FD-1.11.9.3...FD-1.11.13

Time validation not working properly for Chinese languages

Choose a tag to compare

@ahamedalthaf ahamedalthaf released this 08 Sep 15:48
22445e1

Time validation not working properly for Chinese languages

Ex:

Chinese Language:

Before fix:

dayjs('12:00 中午', 'h:mm A', 'zh').format('h:mm A') - 12:00 凌晨(Wrong)

After fix:

dayjs('12:00 中午', 'h:mm A', 'zh').format('h:mm A') - 12:00 中午(Correct)

Time validation not working properly for languages does not have AM/PM

Choose a tag to compare

@ahamedalthaf ahamedalthaf released this 06 Sep 10:58
0b5c5fb

Time formatting not working properly for languages that has different value apart from AM and PM

Ex:

Japanese Language:

Before fix:

dayjs('9:00 午後', 'h:mm A') - 9:00 午前 (Wrong)

After fix:

dayjs('9:00 午後', 'h:mm A') - 9:00 午後 (Correct)

Vietnamese locale throwing error when validating the date with 'MMM'

Choose a tag to compare

@ahamedalthaf ahamedalthaf released this 11 Jul 15:48
8b0be0e

Vietnamese locale throwing error when validating the date with 'MMM'.

Before:

// Valid Date
dayjs('01 Th09 2019', 'DD MMM YYYY', 'vi').isValid() -> false

After

dayjs('01 Th09 2019', 'DD MMM YYYY', 'vi').isValid() -> true