SchumacherFM / wordpress-to-hugo-exporter

Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) ❗️Contributions welcome!
https://gohugo.io
GNU General Public License v3.0
692 stars 95 forks source link

Export drops the time of posts #25

Closed AndreasOM closed 8 years ago

AndreasOM commented 8 years ago

With multiple posts on the same date the order gets mixed up.

Changing return date('Y-m-d', $unixTime); to return date('c', $unixTime); in function _getPostDate [...]

fixed the issue for me.

Not sure about the other implications, so not creating a pull request.

SchumacherFM commented 8 years ago

Interesting. I also have no idea about the side effects. We can add it and see what happens 😎 Just send a PR.

AndreasOM commented 8 years ago

PR #26 - only tested this for one of my wordpress to hugo migrations so far, but "it worked for me".

SchumacherFM commented 8 years ago

Thanks a lot. When at least 3 people start complaining we should remove this PR.