Tata wrote: ↑Tue Jan 30, 2018 10:32 pm
It is really a little complicated to have the date/time format properly set conforming national specifics with v1.7.2.
[…]
Code: Select all
<?php $tx['lastupdate']['dateformat']="d.m.Y";echo lastupdate(1);?>
What does "d.m.Y" mean? How can I get rid of the leading zeroes? – Ah, I have to use "j.n.Y",
of couse! Or should it be "j.n.y"? Looks complicated to me; besides, I can't have localized month names.
As of CMSimple_XH 1.7.0, if the Intl extension is available (for details see
the respective Wiki section), you just have to go to Settings → Language → Locale → All and choose the appropriate locale (if not already done) – in your case it would be sk_SK. Then you get something like "30. januára 2018, 0:14". If you don't like that you can go to Settings → Configuration → Format, and choose the desired format from a select list; e.g. Date=medium and Time=none would give "30. 1. 2018" – I'd prefer the default settings, though.