Page 1 of 1
Show UTC in News
Posted: Wed Sep 26, 2007 11:43 am
by Art-art
Hi,
A question regarding the time as shown in the News:
By using
strftime one can format the layout of the time as shown in the newsitems.
Since the server of my provider runs in local time (CET) this is also the time as shown in here.
Is there a way to show UTC-time by default? I can imagine there is a solution in manupilating the time manually every time you write a news-item. This is not really what I'm looking for

.
Any suggestions?
Thanks in advance,
Arthur
Re: Show UTC in News
Posted: Wed Sep 26, 2007 12:23 pm
by alby
Arthur wrote:
A question regarding the time as shown in the News:
By using
strftime one can format the layout of the time as shown in the newsitems.
Since the server of my provider runs in local time (CET) this is also the time as shown in here.
Is there a way to show UTC-time by default? I can imagine there is a solution in manupilating the time manually every time you write a news-item. This is not really what I'm looking for

.
See in Help:
dateformat
Format to display the article's post date with. This is based on the strftime function and can be used in your template with $entry->formatpostdate. It defaults to %x, which is the default date format for the server's locale
Alby
Re: Show UTC in News
Posted: Wed Sep 26, 2007 12:41 pm
by Art-art
Hi Alby,
I'm sorry, this is too high level for me.
You mention the help line. I found this one before but don't understand the meaning. I'm afraid I'm too mutch of a novice to understand your explanation.
Could you please give me some more info or links to get to understand this?
Arthur
Re: Show UTC in News
Posted: Wed Sep 26, 2007 2:18 pm
by alby
Arthur wrote:
I'm sorry, this is too high level for me.
You mention the help line. I found this one before but don't understand the meaning. I'm afraid I'm too mutch of a novice to understand your explanation.
Could you please give me some more info or links to get to understand this?
In Extensions > Modules > Help relative of News
there are optional params for personalize your output
You must use {news param1="XXX" param2="YYY" ....} for this
In your case:
{news dateformat="%d %b %Y"}
the format %d %b %Y, output postdate like: 26 Sep 2007
See
this for all format date
Alby