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

Allow different date formatting like YYYY/MM/DD with Moment.js library. #31

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

FR6
Copy link

@FR6 FR6 commented Dec 5, 2013

No description provided.

@@ -174,25 +175,19 @@ <h1 id="title">Life</h1>
},
parseTime: function(time, point){
if (!point) point = 'start';
var data = {};
var data = {};
Copy link
Owner

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(),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes please :)

@cheeaun
Copy link
Owner

cheeaun commented Dec 5, 2013

js/moment.min.js file should be deleted now that it's not used.

@cheeaun
Copy link
Owner

cheeaun commented Dec 8, 2013

@FR6 I've tried this PR on my local and seems to mess up a lot of things. Passing only year to MomentJS also sets the date and month which is rather unintended for this case.

@FR6
Copy link
Author

FR6 commented Dec 9, 2013

I see the problem, I will check it out.

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

Successfully merging this pull request may close these issues.

None yet

2 participants