@cloudron/pankow 3.4.0 → 3.4.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +8 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
package/utils.js CHANGED
@@ -105,27 +105,31 @@ function prettyDate(value) {
105
105
 
106
106
  function formatDate(format, value) {
107
107
  const formatters = {
108
- 'hh:mm A': new Intl.DateTimeFormat('en', {
108
+ 'hh:mm A': new Intl.DateTimeFormat(undefined, {
109
109
  hour: '2-digit',
110
110
  minute: '2-digit',
111
111
  hour12: true
112
112
  }),
113
- 'hh:mm:ss A': new Intl.DateTimeFormat('en', {
113
+ 'hh:mm:ss A': new Intl.DateTimeFormat(undefined, {
114
114
  hour: '2-digit',
115
115
  minute: '2-digit',
116
116
  second: '2-digit',
117
117
  hour12: true
118
118
  }),
119
- 'DD MMM': new Intl.DateTimeFormat('en', {
119
+ 'DD MMM': new Intl.DateTimeFormat(undefined, {
120
120
  day: '2-digit',
121
121
  month: 'short'
122
122
  }),
123
- 'DD MMM hh:mm A': new Intl.DateTimeFormat('en', {
123
+ 'DD MMM hh:mm A': new Intl.DateTimeFormat(undefined, {
124
124
  day: '2-digit',
125
125
  month: 'short',
126
126
  hour: '2-digit',
127
127
  minute: '2-digit',
128
128
  hour12: true
129
+ }),
130
+ 'DD MMM': new Intl.DateTimeFormat(undefined, { // force this to get month first
131
+ day: '2-digit',
132
+ month: 'short'
129
133
  })
130
134
  };
131
135