I am replying to my earlier post. The locale as explained there works for date conversion to another language than English. However, the locale is still not working for me for time.
Today, I wanted to show a 'last updated on date time' notification under posts. So I inserted the following tag in the code:
In my config.php the locale is set as follows:
This should be correct as I am in the Europe/Amsterdam time zone with is UTC+1.
However, when I change the post at 13:30 then it shows under the post as 12:30.
For now, I solved it by changing K_GMT_OFFSET to +2. But that is incorrect. I am not in the Europe/Berlin time zone. London really is only 1 hour behind us.
How is this possible, and how can this be solved?
Today, I wanted to show a 'last updated on date time' notification under posts. So I inserted the following tag in the code:
- Code: Select all
<cms:date k_page_modification_date format='H:i' locale='nl_NL' />
In my config.php the locale is set as follows:
- Code: Select all
define( 'K_GMT_OFFSET', +1 );
This should be correct as I am in the Europe/Amsterdam time zone with is UTC+1.
However, when I change the post at 13:30 then it shows under the post as 12:30.
For now, I solved it by changing K_GMT_OFFSET to +2. But that is incorrect. I am not in the Europe/Berlin time zone. London really is only 1 hour behind us.
How is this possible, and how can this be solved?