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

[ENH] Datetime format selection #5819

Merged
merged 2 commits into from
Mar 11, 2022

Conversation

PrimozGodec
Copy link
Contributor

@PrimozGodec PrimozGodec commented Feb 2, 2022

Issue

Orange's widgets does not support datatime formats other than ISO.
Fixes #5779

Description of changes

Add dropdown with format selection to Edit domain widget

Note

When no year is provided (only day and month) - the last three formats the year will become 1900, since it is the default in python's DateTime and excel too.

Next steps

Implement the same functionality in the File widget --- will be implemented in the separate pull request

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec added the needs discussion Core developers need to discuss the issue label Feb 2, 2022
@PrimozGodec PrimozGodec marked this pull request as draft February 2, 2022 15:40
@PrimozGodec PrimozGodec force-pushed the datetime-format-selection branch 4 times, most recently from ad7e45d to 5d7c550 Compare February 18, 2022 09:58
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #5819 (55352c2) into master (2b857a3) will increase coverage by 0.09%.
The diff coverage is 97.95%.

@@            Coverage Diff             @@
##           master    #5819      +/-   ##
==========================================
+ Coverage   86.13%   86.23%   +0.09%     
==========================================
  Files         316      315       -1     
  Lines       66388    66629     +241     
==========================================
+ Hits        57182    57456     +274     
+ Misses       9206     9173      -33     

@PrimozGodec PrimozGodec removed the needs discussion Core developers need to discuss the issue label Feb 18, 2022
@PrimozGodec PrimozGodec marked this pull request as ready for review February 18, 2022 11:07
@ajdapretnar
Copy link
Contributor

This is a great solution and it works well. I have not tested all possible cases, but I tested many and they behave as they should.

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.

Edit Domain: define date format for datetime conversion
3 participants