Coder Social home page Coder Social logo

Comments (6)

aliosv avatar aliosv commented on September 6, 2024

I got same bug, reason — time part of datetime.

from sitemap.js.

palakbhansali avatar palakbhansali commented on September 6, 2024

I tried with static dates long & short both dynamically & statically, but it was just not working at all. I ended up creating a static Sitemap.xml by modifying these [lastmod] field. Though let me give it a one more try, i'll let you know.

from sitemap.js.

aliosv avatar aliosv commented on September 6, 2024

@palakbhansali
https://github.com/ekalinin/sitemap.js/blob/master/lib/sitemap.js#L56
You need to convert date to such format "2014-01-21 13:36:16" (w3c date format, with replaced 'T' by whitespace), and set 'lastmodrealtime' flag in 'true' (https://github.com/ekalinin/sitemap.js/blob/master/lib/sitemap.js#L61).

from sitemap.js.

palakbhansali avatar palakbhansali commented on September 6, 2024

Really appreciate for your link references. It was helpful. We didn't find [lastmodrealtime] flag. We'll try asap & revert back.

from sitemap.js.

aliosv avatar aliosv commented on September 6, 2024

Oh, there is also possibility to set date in ISO format(without any additional flags), for me it's best variant.
https://github.com/ekalinin/sitemap.js/blob/master/lib/sitemap.js#L72

from sitemap.js.

ekalinin avatar ekalinin commented on September 6, 2024

Should be fixed in 1.7.0

from sitemap.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.