Show UTC in News

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Art-art

Show UTC in News

Post 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
alby

Re: Show UTC in News

Post 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
Art-art

Re: Show UTC in News

Post 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
alby

Re: Show UTC in News

Post 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
Last edited by alby on Wed Sep 26, 2007 2:26 pm, edited 1 time in total.
Locked

Return to “[locked] Installation, Setup and Upgrade”