Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date formatting does not appear to support milliseconds or timezone offsets #2

Closed
rander1870 opened this issue Jan 11, 2018 · 1 comment

Comments

@rander1870
Copy link

I was unit testing to ensure that all our needs could be supported with this library, but I was finding that support for formatting dates with milliseconds or timezone offsets did not work as it does in c#.

For example, I had the following unit test code:;

let x = new Date();
console.log(String.format("{0:MM/dd/yyyy hh:mm:ss.fffzzz tt}", x));
console.log(x.format("MM/dd/yyyy hh:mm:ss.fffzzz tt"))
console.log(String.format("{0:MMM zzz}", x));

And for each message displayed, the "zzz" or "fff" was displayed, not the date component.

Is there something syntactically that I am doing wrong?

Thanks

@thorn0
Copy link
Owner

thorn0 commented Jan 27, 2018

Fixed in v1.13.2.

@thorn0 thorn0 closed this as completed Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants