ref: 62efcdfed443239711910592e2d35cd955caea84
parent: 4b9493cb035a83bb6bb3b90270c6960c93bd3a64
author: Anthony Kong <[email protected]>
date: Mon Mar 13 18:50:57 EDT 2017
commands: Improve jekyll import date format Allow both yyyy-mm-dd and yyyy-m-d formats in jekyll markdown file names.
--- a/commands/import_jekyll.go
+++ b/commands/import_jekyll.go
@@ -372,7 +372,7 @@
return time.Now(), "", errors.New("filename not match")
}
- postDate, err := time.Parse("2006-01-02", r[0][1])
+ postDate, err := time.Parse("2006-1-2", r[0][1])
if err != nil {
return time.Now(), "", err
}