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

Please support future date #88

Open
nbaua opened this issue Mar 22, 2016 · 0 comments
Open

Please support future date #88

nbaua opened this issue Mar 22, 2016 · 0 comments

Comments

@nbaua
Copy link

nbaua commented Mar 22, 2016

Hi,
Preetty Date has a awesome date formatting for all the past date however when I tried to use it for one of my Web application, and it blotted as under (writing this as time '2016-03-22 00:00:00' shows 4 hours ago which is OK considering the server time)

Example 1: Future Date
"Event Date:" + jQuery.format.prettyDate('2016-03-29 19:08:00');

Event Date: undefined

Example 2: Few Hours ahead
"Event Date:" + jQuery.format.prettyDate('2016-03-22 06:00:00');

Event Date: undefined

what is expected in these scenarios:
Example 1

Event Date: 7 days to go
OR
Event Date: 7 days, x hours to go

Example 2

Event Date: x hours to go

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