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 'jekyll import' to accept both 2006-01-02 and 2006-1-2 date format #2738

Closed
kongakong opened this Issue Nov 27, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@kongakong
Contributor

kongakong commented Nov 27, 2016

I have some markdown files in my jekyll site that do not follow the yyyy-mm-dd date format convention. 'hugo import jekyll' will fail with this error message:

import_jekyll.go:390: Failed to parse filename '2012-7-8-p-26697918479.markdown': parsing time "2012-7-8": month out of range. Skipping

It is better if the import tool can be more flexible when it comes to handling date in the file name.

@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Nov 27, 2016

Member

I don't know the Parse method good enough to know for sure that this change will not break the old date format, so without some kind of test that tests both variants, I cannot merge this as is.

Member

bep commented Nov 27, 2016

I don't know the Parse method good enough to know for sure that this change will not break the old date format, so without some kind of test that tests both variants, I cannot merge this as is.

@bep bep added this to the v0.20 milestone Mar 13, 2017

@bep bep closed this Mar 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment