ekoeryanto / vuepress-plugin-sitemap

Sitemap generator plugin for vuepress.
MIT License
93 stars 19 forks source link

does not work with localized date #11

Closed psi-4ward closed 4 years ago

psi-4ward commented 5 years ago
  locales: {
    "/": {
      lang: "de-DE"
    }
  },

sets page.lastUpdated to dates like:

which can't be use in new Date()

ekoeryanto commented 5 years ago

Hi, thanks for the issue. Can you please, create the PR to fix in here?

ekoeryanto commented 4 years ago

I think it solved with dateFormatter option in v2.3.0

psi-4ward commented 4 years ago

It's not very comfortable that we have to implement our own reverse-dete-formatter, especially if we have more than one date (ie in multilang websites). I still would prefer a the lastUpdateTstamp solution. What do you think?

ekoeryanto commented 4 years ago

@psi-4ward, i agree with you. please finish the PR