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

It accepts only sharp times like 14:00, 2:00 and throws error incase of time like 14:23, 3:45 etc #27

Open
Fariilicious opened this issue Feb 10, 2020 · 0 comments

Comments

@Fariilicious
Copy link

Fariilicious commented Feb 10, 2020

events: [
    {title: 'Event Title 1', description: 'Description 1', datetime: new Date(2016, 0, 12, 17)},
    {title: 'Event Title 2', description: 'Description 2', datetime: new Date(2016, 0, 23, 16)}`
],

Since it accepts only sharp times such as 2:00, 12:00, 16:00 and throws error when mentioned it as 2:13, 16:34, this makes the code less usable and practical because the events are not always on sharp and complete hour times. It cant be at any minute of the hour.

Can this be already done and i'm unaware ?
I would like to know how can we make it accept any time instead of just sharp times
@jhonis

@Fariilicious Fariilicious changed the title It accepts only sharp times like 14:00, 2:00 and throws error incase of time like 14:23, 3;45 etc It accepts only sharp times like 14:00, 2:00 and throws error incase of time like 14:23, 3:45 etc Feb 10, 2020
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

No branches or pull requests

1 participant