Skip to content

Fix for incorrect deletion/expiration times during Send creation#1313

Merged
mpbw2 merged 1 commit intomasterfrom
bugfix-send-datetimes
Mar 12, 2021
Merged

Fix for incorrect deletion/expiration times during Send creation#1313
mpbw2 merged 1 commit intomasterfrom
bugfix-send-datetimes

Conversation

@mpbw2
Copy link
Contributor

@mpbw2 mpbw2 commented Mar 12, 2021

When creating a new Send, the DateTimes created from the "simple" picker were being set to midnight instead of the current time. Not really a showstopper until "one hour" is selected, resulting in a DateTime from the past ([today] at midnight). Some investigation revealed that modifying the 'DeletionDate' property bound to ExtendedDatePicker was triggering property changes multiple times within the picker and resetting the time to midnight. Those custom pickers are no fun, so for safety/sanity during this release I've given the "simple" pickers their own "simple" DateTimes to modify, isolating them from the values bound to the custom pickers. I will revisit this later to come up with something more elegant.

Edit: Forgot to mention also fixed a missing "Send" capitalization

@mpbw2 mpbw2 requested review from a team and cscharf March 12, 2021 01:12
Copy link

@cscharf cscharf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as I look at it, agree it's not that elegant but the logic seems to work in my head as I follow it through.

@mpbw2 mpbw2 merged commit d0e424a into master Mar 12, 2021
@mpbw2 mpbw2 deleted the bugfix-send-datetimes branch March 12, 2021 01:52
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.

2 participants