Is it possible to display the name of the month in blogs? #51
-
Thus, the name of the month in the snippet "blog archive" displays correctly, must be set. More: https://php.net/manual/en/timezones.php Could not do something in the config.ini? Greeting |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hi Peter! Yes, it's a good workaround... if the date is not in your native language. How to solve time and date output in general. Just last week I thought about it, when I saw that the blogarchive uses a special way to format dates. My suggestion is maybe not very traditional, maybe not what traditional PHP developers would do. From the feedback I got via email there are a many different PHP systems out there, they are not always up to date, web hostings don't behave all the same way. So instead of relying on a system locale, how about the following: Lets put date strings into Yellows language files. For example What do others think about this? |
Beta Was this translation helpful? Give feedback.
-
Hi Mark I find a super idea! Thank You Gesendet von Windows Mail Von: Mark Seuffert Hi Peter! Yes, it's a good workaround... if the date is not in your native language. How to solve time and date output in general. Just last week I thought about it, when I saw that the blogarchive uses a special way to format dates. My suggestion is maybe not very traditional, maybe not what traditional PHP developers would do. From the feedback I got via email there are a many different PHP systems out there, they are not always up to date, web hostings don't behave all the same way. So instead of relying on a system locale, how about the following: Lets put date strings into Yellows language files. For example January, February, March and so on. As a result Yellow could create month names via the normal API. This would give developers one function to use and would work in all CMS features. In the future we could also make fancy things like blog postings that show Today instead of the full date. What do others think about this? — |
Beta Was this translation helpful? Give feedback.
-
Thanks, then this wasn't a crazy idea after all. Let's |
Beta Was this translation helpful? Give feedback.
-
No not at all. You could, for example, the following Insert in the language file: $days = array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"); $months = array(1=>"Januar", Thank You Gesendet von Windows Mail Von: Mark Seuffert Thanks, then this wasn't a crazy idea after all. Let's make put it on the TODO list. — |
Beta Was this translation helpful? Give feedback.
-
Months and weekdays are now supported. Let me know if it's working for you. |
Beta Was this translation helpful? Give feedback.
-
And how do I use the change? Greeting |
Beta Was this translation helpful? Give feedback.
-
Make a backup of your |
Beta Was this translation helpful? Give feedback.
-
Should be working now. |
Beta Was this translation helpful? Give feedback.
Months and weekdays are now supported. Let me know if it's working for you.