Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 Yesterday 23:31:21

etc
Developer
Registered: 2010-11-11
Posts: 5,551
Website GitHub

Re: changing image Date added

The main reason we use intl is i18n, since strftime() is deprecated, and date() is English only. As long as only numeric values are present in a date format, we go with date(), which looks pre-Gregorian consistent. But for more localised formats, intl seems unavoidable.

It might be feasible to integrate a switch from Gregorian to Julian calendar for pre-1582 dates, but is it really worth doing? BC era wouldn’t fit into datetime db type anyway.

Offline

#26 Yesterday 23:47:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,059
Website GitHub

Re: changing image Date added

Let’s stick with what we have. If anyone is using pre-Gregorian dates, well, they’ll have to add the calendar attribute to their tags, right?

<txp:date type="image" calendar="julian" ... />

Edit: ugh that’s fine for front side but this is back-end isn’t it. Ignore me. It’s late.

Last edited by Bloke (Yesterday 23:50:26)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB