We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a06cc commit 70449b9Copy full SHA for 70449b9
src/main/resources/META-INF/frontend/fc-inline-date-picker/fc-inline-date-picker.js
@@ -40,7 +40,11 @@ export class InlineDatePicker extends LitElement {
40
41
willUpdate(changedProperties) {
42
if (changedProperties.has('value')) {
43
- this.date = this.value ? new Date(this.value) : undefined;;
+ this.date = this.value ? new Date(this.value) : undefined;
44
+ if(this.date){
45
+ // normalize date ignoring browser timezone
46
+ this.date = new Date(this.date.toISOString().slice(0, -1));
47
+ }
48
}
49
if (changedProperties.has('date')) {
50
this.value = this.date ? this.date.toISOString().substring(0,10) : undefined;
0 commit comments