Skip to content

fix timezone issues in DiningDAOTest#48

Open
magical wants to merge 1 commit intodevelopfrom
feature/timezone-fix
Open

fix timezone issues in DiningDAOTest#48
magical wants to merge 1 commit intodevelopfrom
feature/timezone-fix

Conversation

@magical
Copy link
Contributor

@magical magical commented Dec 14, 2017

DiningDAOTest checks that IcalUtil.getEventsForDay returns the correct
days by comparing against hardcoded dates. But the hardcoded dates are
constructed without an explicit timezone, so they default to the system
time. This meant that the test would fail if the system timezone was not
set to US Pacific time.

Fix this by setting an explicit timezone.

DiningDAOTest checks that IcalUtil.getEventsForDay returns the correct
days by comparing against hardcoded dates. But the hardcoded dates are
constructed without an explicit timezone, so they default to the system
time. This meant that the test would fail if the system timezone was not
set to US Pacific time.

Fix this by setting an explicit timezone.
@magical magical force-pushed the feature/timezone-fix branch from deff1c0 to eed24ab Compare February 27, 2018 20:45
jemisonf pushed a commit that referenced this pull request May 19, 2020
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

Successfully merging this pull request may close these issues.

1 participant