Skip to content

Commit

Permalink
fix custom date picker
Browse files Browse the repository at this point in the history
Starts on Monday, not Sunday
Example: 2021-08-23
  • Loading branch information
IvanNazaruk authored and my1e5 committed Aug 25, 2023
1 parent 8a2b3c7 commit c297469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/date_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def cached_class_attr(f):


class DatePicker:
weekdays = ('Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa')
weekdays = ('Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su')
months = (
'1-January', '2-February',
'3-March', '4-April', '5-May',
Expand Down Expand Up @@ -367,4 +367,4 @@ def get_value(self) -> datetime:
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
dpg.destroy_context()

0 comments on commit c297469

Please sign in to comment.