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

Autoformatting changes the format #57

Open
nupply opened this issue Jan 27, 2015 · 1 comment
Open

Autoformatting changes the format #57

nupply opened this issue Jan 27, 2015 · 1 comment

Comments

@nupply
Copy link

nupply commented Jan 27, 2015

If I set the format to %d-%m-%Y and type 01-04-2001 or 01 04 2001, the date stays/is converted to 01-04-2001.
However, if I type 01 04 01 or 01-04-01, the format is changed to %m-d%-%Y and I end up with 04-01-2001

@waxingsatirical
Copy link

I think what you are seeing is the backup javascript implementation of date.Parse being used. This happens then the input string cannot be matched to the format you set. 01 04 01 is being parsed as January 4th 2001, which is then being displayed as 04-01-2001 which is the format you set.

I've had similar issues

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