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

set_date not working when format is set to 'd M y H:i:s' #129

Open
tarunparswani26 opened this issue Oct 29, 2018 · 5 comments
Open

set_date not working when format is set to 'd M y H:i:s' #129

tarunparswani26 opened this issue Oct 29, 2018 · 5 comments
Assignees
Labels

Comments

@tarunparswani26
Copy link

set_date not working when format is set to 'd M y H:i:s'. Please give me a quick fix asap....

As per investigation the 'check_date' function is returning false, tested with both passing a date object or a date string in the same desired format.

I'm using the latest version of Zebra Datepicker

@stefangabos
Copy link
Owner

Show me some code you are using so that I can easily replicate this. Thanks!

@stefangabos
Copy link
Owner

never mind, i am able to reproduce it

@stefangabos
Copy link
Owner

ok, the problem is that setting y for years is considered 19xx instead of 20xx...
i have no idea how I could fix this as something like 10 Oct 19 23:18:00 could be either 1919 as well as 2019...

@stefangabos
Copy link
Owner

ok, i will make this work, but only if you provide a javascript date object. if you give the date as a string it cannot know if it's 19xx or 20xx

@Yamakasi
Copy link

Yamakasi commented Nov 1, 2018

@stefangabos that is where your earlier mentioned standards kick in... it's a serious issue when you don't ;) Sorry to say but it's a fact. The objects holds it all.

@stefangabos stefangabos self-assigned this Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants