[TYPO3-core] RFC: Bug 4666: Date formatting should use Typo3 default settings and be configurable

Dmitry Dulepov dmitry at typo3.org
Tue Jan 30 12:12:28 CET 2007


Hi!
> What does these output in Russian:
> 
> %x - preferred date representation for the current locale without the time

30.01.2007 - looks formally correct but typically "computerish" :) This 
form is used sometimes informally but never in formal cases.

Btw, I just recognized that I should have written "month name" instead 
of "day name" in my past e-mail.

> %X - preferred time representation for the current locale without the date

12:54:02 - correct

> %c - preferred date and time representation for the current locale

Втр 30 Янв 2007 12:54:02

This one is never used and looks terrible :( Correct will be:

30 января 2007 г., 12:54:02

> I thought those were made exactly for that purpose, which is to output
> the date in a meaninful way, even in russian.

They are somewhat meaningful :)

> So I tend to agree that we need our "own" date-time formatting api which
> should have the "custom functions" for cyrillic and every other
> intelligence there might be already for date outputting. Isn't there a
> library for that already somewhere? Maybe as an "extension" to the
> strftime functions, so that we can use that is already there, but
> extended to our needs (like for outputting "fully qualified" dates in
> every language).

t3lib_div::strftime() with hook? :)

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-team-core mailing list