XML Sitemaps Generator

Author Topic: How do I change date format. The default is YMD  (Read 13301 times)

Nicky-

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
How do I change date format. The default is YMD
« on: June 25, 2011, 03:48:46 PM »
Hi

Where do I go in generator to change the format of the date shown on the HTML sitemap?

I need it to show DMY and prefereably, in French, like today for example,  25 Juin 2011

Thanks
Nicky

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: How do I change date format. The default is YMD
« Reply #1 on: June 26, 2011, 02:27:25 PM »
Hello,

it can be changed in generator/data/generator.conf file:
<option name="xs_dateformat">Y, F j</option>
you can change it to:
<option name="xs_dateformat">j F Y</option>
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

Nicky-

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
Re: How do I change date format. The default is YMD
« Reply #2 on: June 27, 2011, 07:18:29 AM »
Super! That's now done and aok  :)

And now, where do I go to change the language of the months please?

Nicky

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: How do I change date format. The default is YMD
« Reply #3 on: June 28, 2011, 03:10:28 PM »
It is formated according with PHP's time() specs which doesn't currentl support different languages unfortunately: http://php.net/manual/en/function.date.php
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

Nicky-

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
Re: How do I change date format. The default is YMD
« Reply #4 on: June 28, 2011, 03:47:56 PM »
Hi

Thanks. No problem. Looking at that php date format info you posted above, I think I'll use M or m to represent the month. Job done!

Nicky

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2