FEATURE: Add year to relative time picker (#12268)

Add a new year interval option to relative time picker, and also fix some rounding issues (Math.floor is not ideal because it gets rid of half days etc.)

Also adding some component tests here for relative-time-picker.
This commit is contained in:
Martin Brennan
2021-03-03 11:41:07 +10:00
committed by GitHub
parent 38ab45cb93
commit 31fab3f84d
4 changed files with 169 additions and 9 deletions

View File

@@ -588,6 +588,9 @@ en:
months:
one: "month"
other: "months"
years:
one: "year"
other: "years"
time_shortcut:
later_today: "Later today"