Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Time change Help!
PostPosted: Wed Nov 12, 2014 12:39 am 
Offline
Newbie

Joined: Wed Nov 12, 2014 12:37 am
Posts: 3
Hello Everyone,
I am having a bit of an issue, I cannot for the life of me get the time to change to show a 12 hour format, It is in the right time zone but i cannot get it to change. I currently use Centos 6.5 with centminmod script LEMP setup. Any advice would be greatly appreciated!

Thanks,
Jake


Top
   
 Post subject: Re: Time change Help!
PostPosted: Wed Nov 12, 2014 1:05 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
In the console? In a log? Where?

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
 Post subject: Re: Time change Help!
PostPosted: Wed Nov 12, 2014 1:08 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
The application you're using should provide a way to alter the display. For the date command, you'd do the following:
Code:
$ date
Wed Nov 12 00:06:18 EST 2014
$ date +'%a %b %e %I:%M:%S%p %Z %Y'
Wed Nov 12 12:06:20AM EST 2014


What program is it that you need to change the display in?


Top
   
 Post subject: Re: Time change Help!
PostPosted: Wed Nov 12, 2014 1:36 am 
Offline
Newbie

Joined: Wed Nov 12, 2014 12:37 am
Posts: 3
vonskippy wrote:
In the console? In a log? Where?

My apologies, I should have been a little more descriptive, this is in the console.


Vance wrote:
The application you're using should provide a way to alter the display. For the date command, you'd do the following:
Code:
$ date
Wed Nov 12 00:06:18 EST 2014
$ date +'%a %b %e %I:%M:%S%p %Z %Y'
Wed Nov 12 12:06:20AM EST 2014


What program is it that you need to change the display in?



Code:
[root@server ~]# date +'%a %b %e %I:%M:%S%p %Z %Y'
Tue Nov 11 11:33:29PM CST 2014
[root@server ~]# date
Tue Nov 11 23:33:33 CST 2014
[root@server ~]#


The issue is I use a forum software, xenforo. As you can see whenever, I issued that command you provided it shows the 12 hour format I am looking for. But entering "date" again resorts back to the default 24 format. I am trying to change this on CentOS, so it displays correctly on my website. I hope that clarifies what issue I am having


Top
   
 Post subject: Re: Time change Help!
PostPosted: Wed Nov 12, 2014 1:43 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
It's unlikely the console date format is used in your app. Most apps (like PHPBB) have a setup/preference section where you set the date/time format.

Google "xenforo time format" comes up with several hits that seem like what you're looking for.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
 Post subject: Re: Time change Help!
PostPosted: Wed Nov 12, 2014 1:46 am 
Offline
Newbie

Joined: Wed Nov 12, 2014 12:37 am
Posts: 3
ThankyoU!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group