@fr0st/datetime 6.0.0 → 6.1.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fr0st/datetime",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "FrostDateTime is a free, open-source date manipulation library for JavaScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"date",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md",
|
|
27
27
|
"src"
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"private": false,
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@fr0st/eslint-config": "^1.0.
|
|
46
|
-
"eslint": "^9.
|
|
47
|
-
"mocha": "^
|
|
48
|
-
"rollup": "^4.
|
|
49
|
-
"terser": "^5.
|
|
45
|
+
"@fr0st/eslint-config": "^1.0.3",
|
|
46
|
+
"eslint": "^9.26.0",
|
|
47
|
+
"mocha": "^11.2.2",
|
|
48
|
+
"rollup": "^4.40.2",
|
|
49
|
+
"terser": "^5.39.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/static/create.js
CHANGED
|
@@ -123,7 +123,7 @@ export function fromFormat(formatString, dateString, options = {}) {
|
|
|
123
123
|
|
|
124
124
|
let datetime = this.fromTimestamp(0, {
|
|
125
125
|
locale: options.locale,
|
|
126
|
-
}).
|
|
126
|
+
}).setTimeZone(timeZone);
|
|
127
127
|
|
|
128
128
|
const methods = parseFactory();
|
|
129
129
|
|