jsynowiec / vscode-insertdatestring

An extension for Visual Studio Code that provides a configurable command for inserting the current date and time
MIT License
63 stars 14 forks source link

`TZD` is no longer a valid format placeholder #2

Closed trongthanh closed 7 years ago

trongthanh commented 7 years ago

Extension version 1.1.2.

Tried this format:

{ "insertdatestring.format": "YYYY-MM-DDThh:mm:ssTZD" }

And it turns out: 2017-02-03T13:25:19T+073. (the last D is considered date of month)

I noticed that you changed the date formatter to date-format-lite package, and its time zone designator is Z. So documentation should follow.

Besides, the date formatter also support iso as format settings which output the ISO date time format at GMT. I think for convenience sake, this should be noted down in documentation as well.

jsynowiec commented 7 years ago

Thanks for reporting.