@veritree/ui 0.76.1-2 → 0.76.1-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.76.1-2",
3
+ "version": "0.76.1-4",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -107,8 +107,16 @@ export default {
107
107
  },
108
108
  },
109
109
 
110
+ // The date-fns library uses 'yyyy' for year and 'dd' for day, instead of 'YYYY' and 'DD' respectively,
111
+ // following the Unicode Technical Standard #35 for date format patterns.
112
+ // This is different from the format patterns used in the JavaScript Date object, which uses 'YYYY' and 'DD'.
113
+ // For more information, refer to the date-fns documentation: https://date-fns.org/v3.6.0/docs/Unicode-Tokens
114
+ // It's important to note the difference when using date formatting in different contexts.
110
115
  valueModelFormatted() {
111
- return format(this.value, this.format);
116
+ return format(
117
+ this.value,
118
+ this.format.replace('YYYY', 'yyyy').replace('DD', 'dd'), // replace to match date-fns format
119
+ );
112
120
  },
113
121
 
114
122
  disabledDates() {