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

Wrong date is saved when non-standard date format is used #4311

Closed
rcubetrac opened this issue Aug 24, 2013 · 3 comments
Closed

Wrong date is saved when non-standard date format is used #4311

rcubetrac opened this issue Aug 24, 2013 · 3 comments

Comments

@rcubetrac
Copy link

Reported by @alecpl on 24 Aug 2013 12:00 UTC as Trac ticket #1489294

When using date_format="j.n.Y' wrong date is saved. It's e.g. contact birthday date. I didn't tested with other formats, so there might be other.

Migrated-From: http://trac.roundcube.net/ticket/1489294

@rcubetrac
Copy link
Author

Comment by @alecpl on 24 Aug 2013 13:08 UTC

Y-m-d - ok[- ok[[BR]([BR]]
d-m-Y)]
Y/m/d - ok[- empty date[[BR]([BR]]
m/d/Y)]
d/m/Y - empty date[- empty date[[BR]([BR]]
d.m.Y)]
j.n.Y - invalid date

@rcubetrac
Copy link
Author

Comment by @alecpl on 24 Aug 2013 16:21 UTC

Fixed in b32fab1 all but m/d/Y. Because this format is ambiguous I removed it from date_formats default and added a note in config to not use it.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 24 Aug 2013 16:21 UTC

new => closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant