We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a5f61 commit 7b9cde1Copy full SHA for 7b9cde1
1 file changed
src/display/annotation_layer.js
@@ -1671,6 +1671,14 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement {
1671
).valueOf();
1672
target.step = "";
1673
} else {
1674
+ // Unfortunately, when the date is "2025-09-23", the parser
1675
+ // converts it to UTC time which may lead to the date being off by
1676
+ // one day depending on the timezone. To workaround this, we
1677
+ // append "T00:00" to the date so that it's parsed as local
1678
+ // time (bug 1989874).
1679
+ if (!value.includes("T")) {
1680
+ value = `${value}T00:00`;
1681
+ }
1682
value = new Date(value).valueOf();
1683
}
1684
target.type = "text";
0 commit comments