Skip to content

The lastUpdated field in extension details page show 3/2/2022 24:28:40 #144453

@quanzhuo

Description

@quanzhuo

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:1.65.0
  • OS Version: Linux debian 5.16.0-3-amd64

Steps to Reproduce:

  1. Browse some extensions in the market. Check the Last updated field, if the extension was updated between 0:00:00 and 1:00:00 AM, it will show 24:xx:xx, which is not desired.
  2. Two examples: extension ms-ceintl.vscode-language-pack-zh-hans in en_US locale, njpwerner.autodocstring in zh_CN locale

Analysis:
According to the question on stackOverflow, It seems to be a bug in INTL ECMA specifications. we can avoid this issue by add hourCycle: 'h23' to toLocaleString method. I tried the solution, it worked. The changes is as follows:
fix

Is this suitable to avoid the issue ?

Screen shots:

vscode-lastUpdated-bad
2022-03-05_13-08

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions