Skip to content

Fix timezone issue

Cédric Willekens requested to merge Fix-timezone-issue into development

What does this mr do?

When converting from LocalDAteTIme to instant it was converting it to UTC time instead of local time. So what was happening was that the time for the lab to start say 12:00 was being converted to an instant which has 12:00 UTC time which means it is 2 hours behind us. Now instead of using UTC conversion, we use the local time zone conversion so that for our case 12:00 becomes 10:00 UTC.

Actions taken to fix bug

Convert the LocalDateTime to local time zone time instead of UTC.

Does this MR meet the acceptance criteria?

  • I have added a changelog entry to reflect the significant changes I made and the bug I fixed.
  • A test was created to test the bug.
  • I have updated the documentation accordingly.
  • I adhere to the style guide.
Edited by Cédric Willekens

Merge request reports