Pronews, change date to UK format
Permalink
Hi
I have asked this in the Pronews support section but my client is wanting this doing asap so thought i'd ask here...
I need to change the news date format to UK, so it displays as 05 July, 2011. After lookng through the forums I thought i'd found the answer by changing the following in app.php
if (!defined('DATE_APP_GENERIC_MDY_FULL')) {
define('DATE_APP_GENERIC_MDY_FULL', t('F d, Y'));
I swapped this part to ('d F, Y').
Unfortunately when I went back to the site the news that was already on the site had disappeared so I had to swap it back!!!
Does anybody know how to change this as the client has insisted he wants it in UK format.
Thanks in advance
Karl
I have asked this in the Pronews support section but my client is wanting this doing asap so thought i'd ask here...
I need to change the news date format to UK, so it displays as 05 July, 2011. After lookng through the forums I thought i'd found the answer by changing the following in app.php
if (!defined('DATE_APP_GENERIC_MDY_FULL')) {
define('DATE_APP_GENERIC_MDY_FULL', t('F d, Y'));
I swapped this part to ('d F, Y').
Unfortunately when I went back to the site the news that was already on the site had disappeared so I had to swap it back!!!
Does anybody know how to change this as the client has insisted he wants it in UK format.
Thanks in advance
Karl
There is a newer version out that fixes this, think its version 1.4.2. Just download it again and it should be fine.
Excellent, thanks. That worked. I upgraded from 1.4.0 => 1.4.2
Also, for anyone interested. I added a view.php file to the folder blocks/content/templates/news_post (copied from packages/pronews/blocks/content/templates/news_post/view.php)
Just wanted to modify the view so that the was no "Tags" section.
On more more thing, if you are looking to change the date from in the news post you can add the following to your config/site.php:
define('DATE_APP_GENERIC_MDYT_FULL', 'j F, Y');
Also, for anyone interested. I added a view.php file to the folder blocks/content/templates/news_post (copied from packages/pronews/blocks/content/templates/news_post/view.php)
Just wanted to modify the view so that the was no "Tags" section.
On more more thing, if you are looking to change the date from in the news post you can add the following to your config/site.php:
define('DATE_APP_GENERIC_MDYT_FULL', 'j F, Y');
Wayn