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

JodaTimeFormattingTests.testBindDateTime fails in certain time zones [SPR-13536] #18112

Closed
spring-projects-issues opened this issue Oct 4, 2015 · 1 comment
Assignees
Labels
type: task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Oct 4, 2015

YoungTae Seok opened SPR-13536 and commented

When I run tests of spring-framework project, I got some failed tests from JodaTimeFormattingTests.

It is mainly because I live in the different time zone. :(

For example, in testBindDateTime,
the result value should start with "10/31/09", but I got the value of "10/30/09 10:00 PM", due to the time zone (+09:00).

When I modified the tests with new DateTime(2009, 10, 31, 12, 0, TEST_DATETIMEZONE), I see all tests passed. :)


Affects: 4.2.1

Attachments:

Referenced from: commits 668f5db

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Oct 5, 2015

Juergen Hoeller commented

Good catch! Fixed through consistent use of UTC now.

Juergen

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

No branches or pull requests

2 participants