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

Date picker value year issue #530

Closed
RoiS8 opened this issue Jan 30, 2021 · 1 comment
Closed

Date picker value year issue #530

RoiS8 opened this issue Jan 30, 2021 · 1 comment
Labels
state: inactive This will not be worked on
Projects

Comments

@RoiS8
Copy link

RoiS8 commented Jan 30, 2021

Version of Dear PyGui

Version: 0.6.123
Operating System: Windows 10

My Issue/Question

Date picker will only show date value if 100 will be added to current year (YY - format)
e.g.
will not update if year = 21
will update if year = 121

also will return year values as 121 (for 2021)

To Reproduce

Steps to reproduce the behavior:
use dpg.add_date_picker('first_date', default_value={'month_day': 14, 'year': 121, 'month': 0})

Expected behavior

date picker will update when year = 21 or 2020 (YY/YYYY)
date picker will return value of year = 21 or 2020 (YY/YYYY)

Standalone, minimal, complete and verifiable example

import dearpygui.core as dpg
import dearpygui.simple as sdpg

class App:
    def show(self):
        """Start the gui."""
        with sdpg.window("Main Window"):
            dpg.set_main_window_size(800, 1000)
            # Show correct date when year = 121
            dpg.add_date_picker('first_date', default_value={'month_day': 14, 'year': 121, 'month': 0})
            # Doesn't update when year = 21
            dpg.add_date_picker('second_date', default_value={'month_day': 14, 'year': 21, 'month': 0})
        dpg.start_dearpygui(primary_window="Main Window")


if __name__ == '__main__':
    test_app = App()
    test_app.show()
@hoffstadt hoffstadt added this to Needs triage in Bug Tracker via automation Feb 1, 2021
@hoffstadt
Copy link
Owner

Its a bit odd, but the year is from 1900. But you are not allowed to go before 1970. This is an artifact of implot. Before Version 1.0, we will be replacing this with our own less strict calendar!

@hoffstadt hoffstadt added bug: implot state: inactive This will not be worked on and removed need to verify labels Feb 1, 2021
Bug Tracker automation moved this from Needs triage to Closed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: inactive This will not be worked on
Projects
No open projects
Development

No branches or pull requests

2 participants