alexbruno / hexo-generator-json-content

Hexo (https://hexo.io/) plugin to generate a JSON file for generic use or consumption with the contents of posts and pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

about time format?

lozn00 opened this issue · comments

commented

2016-09-03T06:41:06.169Z

i i need 2016-9-03
soruces date:2016-11-5 23:46:13 or 2016-11-5 but json generator is 2016-09-03T06:41:06.169Z

format
请问应该怎么做呀,我不想 正则出前面的。后面的不知道是啥 看不懂格式

Hello, sorry for late response!

Ok, maybe I will try to add format options, but the current format is a universal date and time format. Most program languages understand it.

If you need a specific format, you can do it by treating the data on your consumer application.

For example, in JavaScript you can do this:

let dt = '2016-09-03T06:41:06.169Z',
    notime = dt.split('T')[0]

Or anything that give you the needed format.

Hello again!

New update was pushed and now this plugin supports date format using moment.

README simple documentation was updated too and can help you to understand how it works.

Get the latest version and enjoy!

👍

commented

thank