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

Prevent DailyCalendar from Removing Hour from Timestamps #1151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JustinElms
Copy link
Contributor

@JustinElms JustinElms commented May 9, 2024

Background

The hours listed in the hourly timepicker dropdown were getting repalced by "00:00" whenever the date was changed via the calendar or the prev/next buttons. This was because the DailyCalendar component was erasing the time data when generating the date buttons for the calendar dropdown and because this data was only a shallow copy the changes were reflected in the dataset timestamps. To resolve this issue a deep copy of the timestamps was created within this component to prevent the original timestamp data from getting modified.

Why did you take this approach?

Keeps the functionality without modifying the original data.

Screenshot(s)

image
image

Checks

  • I ran unit tests.
  • I've tested the relevant changes from a user POV.
  • I've formatted my Python code using black ..

@JustinElms JustinElms added Bugfix A fix for something broken. Javascript labels May 9, 2024
@JustinElms JustinElms self-assigned this May 9, 2024
@JustinElms JustinElms changed the title Prevent Hourly Timepicker Calendar from Removing Hour from Timestamps Prevent DailyCalendar from Removing Hour from Timestamps May 9, 2024
@JustinElms JustinElms added the Priority: High Requiring immediate attention. High impact on users. label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix A fix for something broken. Javascript Priority: High Requiring immediate attention. High impact on users.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant