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

Add hifitime datepicker & make datepicker generic #3021

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

Conversation

Massou31
Copy link

@Massou31 Massou31 commented May 23, 2023

I've copy/pasted my changes to the datepicker that uses https://github.com/nyx-space/hifitime

I've tested succinctly and it works but there may be some edge cases not handled yet.

scripts/check.sh do not work yet because the features are not mutually exclusive (after a quick check I found this: rust-lang/cargo#2980 but it seem that some mitigations are possible).

I'll dig further on the features later this week or next week as well as more testing.

Closes #2932.

@Massou31 Massou31 force-pushed the master branch 4 times, most recently from 73aa5b2 to 6348a21 Compare June 3, 2023 01:23
@Massou31
Copy link
Author

Massou31 commented Jun 3, 2023

I've just changed the implementation in order to make an abstraction on the datepicker, this way any date/time library could be used as long as the required trait is implemented.

There is 1 known bug regarding how I compute the week number with hifitime (I plan to fix it sometime in the next 2 weeks, I'll remove the draft status once it's fixed)

@emilk I think that this pull request could have an initial review.

EDIT: the last commit computes the iso week correctly

@Massou31 Massou31 force-pushed the master branch 2 times, most recently from 933b57c to 2bb7e09 Compare June 6, 2023 10:36
@Massou31 Massou31 marked this pull request as ready for review June 6, 2023 10:44
@Massou31 Massou31 changed the title Draft: Add hifitime datepicker Add hifitime datepicker & make datepicker generic Jun 6, 2023
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.

Remove implicit dependency on time 0.1
1 participant