Comments (7)
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.
@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.
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.
@Spoofkz Is your already problem solved?
from htmly.
@Spoofkz Is your already problem solved?
Not yet, i see time in admin folder - edit post page works well.
Please help.
from htmly.
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.
Resolved, thx mates
from htmly.
Related Issues (20)
- 404 not found when submitting installation form HOT 2
- Parse error: syntax error, unexpected '?' while installing htmly 2.8.3 on PHP < 7.0 HOT 5
- [v2.8.4] List of posts shows wrong character encoding HOT 4
- Text "Tag" in "Add content" and "Edit" page is not translatable HOT 2
- PHP-INTL date format HOT 3
- Unsorted categories list in admin views HOT 3
- An idea: Is it possible to labelize all the fields? HOT 2
- Comment Slug HOT 13
- Just installed, nice app but... HOT 16
- Add Content To Sidebar HOT 5
- Some issues after the new installation HOT 13
- What need to be done to display rtl language (such as Arabic or Hebrew) HOT 1
- RSS import failed HOT 3
- How to customize <title></title> HOT 12
- php-Warning in admin/updates HOT 2
- Can't edit or delete posts HOT 8
- Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string HOT 3
- Known issue: Does not support underscore character in username HOT 1
- Version 2.9.0 - i18n error HOT 11
- Looking to override some css HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmly.