GithubHelp home page GithubHelp logo

Comments (7)

JPLeRouzic avatar JPLeRouzic commented on June 14, 2024 1

Maybe because this function has been DEPRECATED as of PHP 8.1.0?.
Relying on this function is highly discouraged.
https://www.php.net/manual/en/function.strftime

Maybe this would be useful:

$date = strtotime(...);

$date_format = config('date.format');
if (isset($date_format) ) {
        $timestamp = date($date_format, $date);
    } else  {
        $timestamp = date($date_format, $date);
    }

from htmly.

JPLeRouzic avatar JPLeRouzic commented on June 14, 2024 1

@Spoofkz, can you describe your problem in a more explicit way, perhaps with pictures?
One picture of the problem, another with what you want.

from htmly.

Spoofkz avatar Spoofkz commented on June 14, 2024 1

For example my config/config.ini has the following: date.format = "%A, %e. %B %Y, %H:%M Uhr"

This results in, e.g., "Dienstag, 6. Dezember 2022, 20:10 Uhr" for the visitor.

Thx, this works 👍
Sorry for the noob questions 😃

from htmly.

bttrx avatar bttrx commented on June 14, 2024

@Spoofkz Is your already problem solved?

from htmly.

Spoofkz avatar Spoofkz commented on June 14, 2024

@Spoofkz Is your already problem solved?

Not yet, i see time in admin folder - edit post page works well.

Please help.

from htmly.

bttrx avatar bttrx commented on June 14, 2024

For example my config/config.ini has the following: date.format = "%A, %e. %B %Y, %H:%M Uhr"

This results in, e.g., "Dienstag, 6. Dezember 2022, 20:10 Uhr" for the visitor.

from htmly.

Spoofkz avatar Spoofkz commented on June 14, 2024

Resolved, thx mates

from htmly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.