Jump to content

Dátum a čas


jbeles

Recommended Posts

Našiel som na anglickom fóre jednoduchú úpravu na zmenu dátumu z YYYY/MM/DD na náš spôsob, teda DD.MM.YYYY. Už sa mi nepodarilo nájsť pôvodný odkaz, tak pridám upravený súbors z classes\tools.php. Vo vnútri súboru je aj popis úprav. Hádam to niekomu pomôže.

Tools.php

Link to comment
Share on other sites

nevím jak to máš ty, já na ten tvůj tools nekoukal,
ale kolem řádku 266 stačí změnit iso code z fr na cz.

        $language = Language::getLanguage(intval($id_lang));
        if ($language AND strtolower($language['iso_code']) == 'cz')
            return ($tmpTab[2].'-'.$tmpTab[1].'-'.$tmpTab[0].($full ? $hour : ''));
        else
            return ($tmpTab[0].'-'.$tmpTab[1].'-'.$tmpTab[2].($full ? $hour : ''));




presta 1.2.5

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...