Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-13 23:46:59

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Additional Date/Time Format in prefs (24H)

A standard way of displaying date and time where I live is this:

14.08.2005 22:15

Unfortunately, exactly this option isn’t available in the prefs for articles, while in other combinations of date and time the 24h format is there. (We are not using the am/pm format, and it can even happen that depending on the server settings, am/pm isn’t available as an option, as I have one case of a txp installation on a server in Switzerland where the 24h format is the default time format in php. But on Textdrive, I’m missing the 24h option.)

This can easily be fixed by inserting "$date $time24", after line 294 in txp_prefs.php as an additional option, and this would also be consistent, since for all the long dates, the 24h format is available, but not for the short numeric date format, which is widely used.

So can this please be added officially?

Offline

#2 2005-08-14 00:46:41

ToOb
New Member
From: Czech republic
Registered: 2005-08-13
Posts: 4

Re: Additional Date/Time Format in prefs (24H)

Right typo for Czech is 14. 08. 2005 22.15 (non-breaking spaces and dot in place of colon, colon separates minutes from seconds 22.15:39).

There is number of different settings for all languages. Isn’t beter solution to try more general approach — let user (admin) set up best format(s)?

Offline

#3 2005-08-14 01:34:05

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: Additional Date/Time Format in prefs (24H)

There is number of different settings for all languages. Isn’t beter solution to try more general approach — let user (admin) set up best format(s)?

I agree that would be the best solution for something to be used in an international community.

Offline

#4 2005-08-14 04:01:49

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Additional Date/Time Format in prefs (24H)

You can specify the format directly with <txp:posted format="%x %X" /> etc.


Alex

Offline

#5 2005-08-14 12:04:29

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: Additional Date/Time Format in prefs (24H)

> zem wrote:

> You can specify the format directly with <txp:posted format="%x %X" /> etc.

It’s good to know there’s a workaround, yet it would still be much better to have this option in the preferences and to set those formats globally in the way we want.

Offline

#6 2005-08-14 13:55:07

Anark
Member
Registered: 2004-08-14
Posts: 101

Re: Additional Date/Time Format in prefs (24H)

It would be nice if strftime values could be added to txp:comment_time as well. Mary’s plugin shouldn’t be required to make this happen.

Offline

Board footer

Powered by FluxBB