Worldcubeassociation.org: Datetimepicker bug?

Created on 29 Jun 2016  路  12Comments  路  Source: thewca/worldcubeassociation.org

While editing a competition yesterday, I found that selecting October 15th 2016 is very messy. See gif below.
Basically the field is saved as 2016-10-16 on the database, but for some reason it appear as 2016-10-15 on the input. Also, when the datetimepicker opens, there are two (?!) day 15, one being to the right of everything else.

I'm able to click on the 16th and save, but on reloading the problem repeats.

Could this be something local? Can anybody try to replicate this?
out

bug

All 12 comments

It's probably some broken assumptions about time zones in the code.

Can you try it at different times of day and see if it acts differently?

Just tried again and got the same result.
I remember seeing this a couple weeks ago too, in another project of mine.

I was fixing a birthdate today and realised it also fails for october 1991:
october

@pedrosino

Are we still using that same library for the datepicker? Does the issue still exist? I see their last commit was in 2015, so that doesn't give much hope ;)

If we have moved to a different datepicker, then please close this ticket.

Yeah, it does:
image

In that case we should move to a different datepicker, one that is still under active maintenance ;)

@pedrosino Could you check whether this branch still has the same issue?

@UnsolvedCypher Sorry for the delaty
It works fine with your branch, but also seems to work on the WCA website now:
Peek 28-02-2020 21-54

Oh that's good to hear! In that case I guess this issue can be closed

Love these kind of issues :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lgarron picture lgarron  路  9Comments

maconard picture maconard  路  7Comments

Nanush7 picture Nanush7  路  3Comments

AlexKatyukov picture AlexKatyukov  路  3Comments

seanfrasure picture seanfrasure  路  5Comments