Diskusie » Spätná väzba ku Greasy Fork

GMT time conversion error

§
Pridaný: 29.04.2025
Upravený: 29.04.2025

It is now Beijing time on April 30, 2025 05:23:49


https://greasyfork.org/zh-CN/scripts/529453-twitter-x-media-downloader/versions
When checking the script update record, I found that there was an error in the GMT time conversion.
It should not be yesterday It should be 2 days ago 2025.04.30

JasonBarnabeZablokovaný
§
Pridaný: 30.04.2025

I've just updated the library that does this (https://github.com/github/relative-time-element). Do you still see the problem?

JasonBarnabeZablokovaný
§
Pridaný: 30.04.2025

It looks like once it's more than 36 hours ago, the library will stop showing "yesterday", possibly because it's rounding 1.5 days to 2.

I've created a test page https://greasyfork.org/en/relative_date_test and filed https://github.com/github/relative-time-element/issues/313.

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.