@@ -452,7 +452,7 @@ suite('relative-time', function () {
452452 time . setAttribute ( 'tense' , 'past' )
453453 time . setAttribute ( 'datetime' , '2023-01-01T00:00:00Z' )
454454 await Promise . resolve ( )
455- assert . equal ( time . shadowRoot . textContent , '11 years ago' )
455+ assert . equal ( time . shadowRoot . textContent , '10 years ago' )
456456 } )
457457
458458 test ( 'rewrites from now past datetime to minutes ago' , async ( ) => {
@@ -1276,25 +1276,25 @@ suite('relative-time', function () {
12761276 {
12771277 datetime : '2022-12-03T15:46:00.000Z' ,
12781278 format : 'duration' ,
1279- expected : '1 month, 10 days, 1 hour' ,
1279+ expected : '1 month, 9 days, 1 hour' ,
12801280 } ,
12811281 {
12821282 datetime : '2022-12-03T15:46:00.000Z' ,
12831283 format : 'duration' ,
12841284 precision : 'minute' ,
1285- expected : '1 month, 10 days, 1 hour' ,
1285+ expected : '1 month, 9 days, 1 hour' ,
12861286 } ,
12871287 {
12881288 datetime : '2022-12-03T15:46:00.000Z' ,
12891289 format : 'duration' ,
12901290 precision : 'day' ,
1291- expected : '1 month, 10 days' ,
1291+ expected : '1 month, 9 days' ,
12921292 } ,
12931293 {
12941294 datetime : '2022-12-03T15:46:00.000Z' ,
12951295 format : 'duration' ,
12961296 tense : 'future' ,
1297- expected : '1 month, 10 days, 1 hour' ,
1297+ expected : '1 month, 9 days, 1 hour' ,
12981298 } ,
12991299 {
13001300 datetime : '2022-12-03T15:46:00.000Z' ,
@@ -1349,25 +1349,25 @@ suite('relative-time', function () {
13491349 {
13501350 datetime : '2024-10-24T14:46:00.000Z' ,
13511351 format : 'duration' ,
1352- expected : '2 years, 11 days ' ,
1352+ expected : '2 years' ,
13531353 } ,
13541354 {
13551355 datetime : '2024-10-24T14:46:00.000Z' ,
13561356 format : 'duration' ,
13571357 precision : 'minute' ,
1358- expected : '2 years, 11 days ' ,
1358+ expected : '2 years' ,
13591359 } ,
13601360 {
13611361 datetime : '2024-10-24T14:46:00.000Z' ,
13621362 format : 'duration' ,
13631363 precision : 'day' ,
1364- expected : '2 years, 11 days ' ,
1364+ expected : '2 years' ,
13651365 } ,
13661366 {
13671367 datetime : '2024-10-24T14:46:00.000Z' ,
13681368 format : 'duration' ,
13691369 tense : 'future' ,
1370- expected : '2 years, 11 days ' ,
1370+ expected : '2 years' ,
13711371 } ,
13721372 {
13731373 datetime : '2024-10-24T14:46:00.000Z' ,
@@ -1799,19 +1799,19 @@ suite('relative-time', function () {
17991799 {
18001800 datetime : '2020-10-24T14:46:00.000Z' ,
18011801 format : 'duration' ,
1802- expected : '2 years, 10 days ' ,
1802+ expected : '2 years' ,
18031803 } ,
18041804 {
18051805 datetime : '2020-10-24T14:46:00.000Z' ,
18061806 format : 'duration' ,
18071807 precision : 'minute' ,
1808- expected : '2 years, 10 days ' ,
1808+ expected : '2 years' ,
18091809 } ,
18101810 {
18111811 datetime : '2020-10-24T14:46:00.000Z' ,
18121812 format : 'duration' ,
18131813 precision : 'day' ,
1814- expected : '2 years, 10 days ' ,
1814+ expected : '2 years' ,
18151815 } ,
18161816 {
18171817 datetime : '2020-10-24T14:46:00.000Z' ,
@@ -1823,7 +1823,7 @@ suite('relative-time', function () {
18231823 datetime : '2020-10-24T14:46:00.000Z' ,
18241824 format : 'duration' ,
18251825 tense : 'past' ,
1826- expected : '2 years, 10 days ' ,
1826+ expected : '2 years' ,
18271827 } ,
18281828 {
18291829 reference : '2023-03-23T12:03:00.000Z' ,
@@ -2143,7 +2143,7 @@ suite('relative-time', function () {
21432143 {
21442144 datetime : '2021-10-30T14:46:00.000Z' ,
21452145 format : 'elapsed' ,
2146- expected : '11m 29d ' ,
2146+ expected : '11m 24d ' ,
21472147 } ,
21482148 {
21492149 datetime : '2021-10-30T14:46:00.000Z' ,
@@ -2152,7 +2152,7 @@ suite('relative-time', function () {
21522152 expected : '11m' ,
21532153 } ,
21542154 {
2155- datetime : '2021-10-29T14 :46:00.000Z' ,
2155+ datetime : '2021-10-24T14 :46:00.000Z' ,
21562156 format : 'elapsed' ,
21572157 expected : '1y' ,
21582158 } ,
@@ -2481,7 +2481,7 @@ suite('relative-time', function () {
24812481 datetime : '2022-01-01T12:00:00.000Z' ,
24822482 tense : 'past' ,
24832483 format : 'micro' ,
2484- expected : '1y ' ,
2484+ expected : '11m ' ,
24852485 } ,
24862486 {
24872487 reference : '2022-12-31T12:00:00.000Z' ,
0 commit comments