-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Date in posts #345
Comments
I guess you have to use also post.post_date|date instead of post.date.
|
I've experienced the same issue FlyntWP v1.4.0. In the Components/BlockPostHeader/index.twig
replaced to
does the trick and retrieves the publication date instead of the current date, so removing the |date |
🌐 We usually have a Translatable Setting to specify a language specific date format (e.g. "dateFormat" in the example) and then use this for processing the date:
|
@robertmain53 , @Loualex , @Auroraboreali-s , @aaronmeder , Thanks for all of your input. This issue is a strange one. As for our normal setup, the code works fine, as is. flyntwp.com always reflects our master branch. And if you check here it does actually display the correct date. However, we also have run into issues with this not showing the correct date. I have opened a pull request with a fix that also includes using the general wordpress option for the date format and included the time zone for the datetime stamp. This should all lead to the issue not being present anymore. |
Hi,
I've tried Flynt v1.4.0 both locally and on (Apache).
In both cases I have found that the BlockPostHeader shows today's date, not the date on which the post was written or the date on which the post was modified.
The text was updated successfully, but these errors were encountered: