Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix DateTimeZone issue when using the DateTime type #23

Merged
merged 1 commit into from
Jan 20, 2013
Merged

Fix DateTimeZone issue when using the DateTime type #23

merged 1 commit into from
Jan 20, 2013

Conversation

colinmorelli
Copy link
Contributor

Currently, (unless I'm missing something), using the timezone parameter of the DateTime type does not work. It attempts to pass the timezone to the createFromFormat method as a string, rather than converting it to a DateTimeZone object first (as it does with the default timezone).

This PR simply wraps that line with a new \DateTimeZone call.

Wrapped DateTimeZone object around the timezone when using the DateTime type.
schmittjoh added a commit that referenced this pull request Jan 20, 2013
Fix DateTimeZone issue when using the DateTime type
@schmittjoh schmittjoh merged commit f319887 into schmittjoh:master Jan 20, 2013
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants