Skip to content

Commit 1f84db9

Browse files
committed
Updated README.md
1 parent 11dc1a2 commit 1f84db9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ npm i date-and-time
2525

2626
## Recent Changes
2727

28+
- 3.6.0
29+
- In `parseTZ()`, enabled parsing of the missing hour during the transition from standard time to daylight saving time into a Date type.
30+
- In `format()` with the `z` token, fixed an issue where some short time zone names were incorrect.
31+
2832
- 3.5.0
2933
- Added `addYearsTZ()`, `addMonthsTZ()`, and `addDaysTZ()` to the `timezone` plugin.
3034
- Revised the approach to adding time and removed the third parameter from `addHours()`, `addMinutes()`, `addSeconds()`, and `addMilliseconds()`.
3135

3236
- 3.4.1
3337
- Fixed an issue where `formatTZ()` would output 0:00 as 24:00 in 24-hour format in Node.js.
3438

35-
- 3.4.0
36-
- Added `zz` (time zone name) and `z` (time zone name abbreviation) tokens to the `timezone` plugin.
37-
- Fixed an issue where token extensions by other plugins were not reflected in functions provided by the `timezone` plugin.
38-
3939
## Usage
4040

4141
- ES Modules:
@@ -69,6 +69,16 @@ import date from '/path/to/date-and-time.es.min.js';
6969
### Note
7070

7171
- If you want to use ES Modules in Node.js without the transpiler, you need to add `"type": "module"` in your `package.json` or change your file extension from `.js` to `.mjs`.
72+
- If you are using TypeScript and having trouble building, please ensure that the following settings in the `compilerOptions` of your `tsconfig.json` are set to `true`.
73+
74+
```json
75+
{
76+
"compilerOptions": {
77+
"allowSyntheticDefaultImports": true,
78+
"esModuleInterop": true
79+
}
80+
}
81+
```
7282

7383
## API
7484

0 commit comments

Comments
 (0)