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

DateTime createFromFormat wrongly uses current timestamp in time part for bare DATE format #29

Closed
kartik-v opened this issue Nov 17, 2014 · 1 comment

Comments

@kartik-v
Copy link
Owner

The DateTime::createFromFormat method has an issue where a DateTime object created without explicitly providing the time portion will have the current time set instead of the default 00:00:00. This will lead to unfavorable comparison of dates and timezones. A fix will be provided whereby, when using FORMAT_DATE - the time portion will be internally auto set to 00:00:00 to ensure right date conversion and timezone comparison.

@kartik-v
Copy link
Owner Author

Fixed via upgrade to release v1.7.0.

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