-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Allow different date formatting like YYYY/MM/DD with Moment.js library. #31
base: master
Are you sure you want to change the base?
Conversation
@@ -174,25 +175,19 @@ <h1 id="title">Life</h1> | |||
}, | |||
parseTime: function(time, point){ | |||
if (!point) point = 'start'; | |||
var data = {}; | |||
var data = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow, got weird white spaces after the code.
@@ -177,22 +178,16 @@ <h1 id="title">Life</h1> | |||
var data = {}; | |||
if (/^\~\d+$/.test(time)){ // ~YYYY | |||
data = { | |||
startYear: parseInt(time.slice(1), 10), | |||
startYear: moment(time.slice(1), "YYYY", true).year(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single quotes please :)
|
@FR6 I've tried this PR on my local and seems to mess up a lot of things. Passing only |
I see the problem, I will check it out. |
No description provided.