store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Tue May 21, 2013 12:13 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: ASL 3.0.22 Clock
Unread postPosted: Thu Mar 29, 2012 4:55 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Nov 23, 2010 7:30 am
Posts: 247
Location: Glasgow, UK
As mentioned in the (incorrectly titled) release notes in the announcement board, my clock in ASL is not correct.

Quote:
The ASL clock module may not report the correct time due to the timezone not being specified in the php.ini.


The system time is correct:

Code:
Thu Mar 29 09:53:08 BST 2012


However ASL reports everything -1 hour.



Can you advise where I can manually set the timezone?

I had expected to be able to edit a php.ini file for ASL, however the one located below only has one line of content:
Code:
# cat /var/asl/etc/php.ini
extension_dir=/var/asl/usr/lib64//php/modules/


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Thu Mar 29, 2012 6:00 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
chrismcb wrote:
The system time is correct:
Code:
Thu Mar 29 09:53:08 BST 2012

However ASL reports everything -1 hour.


Have same issue, every other PHP application displays correct time, ASL is -1 hour.

php.ini = date.timezone = "Europe/London"


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Apr 09, 2012 3:49 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Nov 23, 2010 7:30 am
Posts: 247
Location: Glasgow, UK
No help available for this issue from ASL? The latest update still suffers from this problem.


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Apr 09, 2012 9:54 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7423
Location: earth
Yeah, we even said it in the release notes :P


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Apr 09, 2012 3:29 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Oct 29, 2007 6:51 pm
Posts: 606
set your timezone in the ini file

Quote:
date.timezone = America/Los_Angeles


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Wed May 16, 2012 10:10 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 14, 2008 8:29 am
Posts: 278
Location: Rhode Island
Having same issue here also so i manually set it like below in /etc/php.ini and rebooted like fifty million times and still a no go time is showing up 4 hours ahead of my time here in Rhode Island.



Code:
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
;date.timezone = America/New_York


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Wed May 16, 2012 11:00 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Oct 29, 2007 6:51 pm
Posts: 606
you have it commented out, remove the ';'


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Wed May 16, 2012 11:20 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 14, 2008 8:29 am
Posts: 278
Location: Rhode Island
hostingguy wrote:
you have it commented out, remove the ';'


Wow, Thanks alot, i must have looked at it a hundred times and did not even notice it was commented out.. argh stupid move on my behalf


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Wed May 16, 2012 11:51 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
You need to adjust the php.ini for asl-web (maybe there needs to be an ASL set-up/config check to copy this php.ini setting?):
Code:
vim /var/asl/etc/php.ini
service tortixd restart


Last edited by Kalimari on Wed May 16, 2012 2:03 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Wed May 16, 2012 12:49 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 14, 2008 8:29 am
Posts: 278
Location: Rhode Island
Kalimari wrote:
You need to adjust the php.ini for asl-web (may there needs to be a check for this/copy setting?):
Code:
vim /var/asl/etc/php.ini
service tortixd restart


Thanks Kali, That is exactly what i needed to do and it now shows the correct time.


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Thu May 17, 2012 10:52 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
d'oh. same here -- forgot it had its own php.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Nov 26, 2012 12:26 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Nov 23, 2010 7:30 am
Posts: 247
Location: Glasgow, UK
OK, I think I may be loosing it here... but I'm having the same issue again!

Since the UK DST stopped last month, my time has been out by 1 hour.

I've checked the /var/asl/etc/php.ini file and "Europe/London" was set.

I changed it to "Etc/GMT" to try to force it to default, restarted tortixd, but the GUI still displays as one hour behind.

I can verify the settings are correct:
Code:
# /var/asl/usr/bin/php -i | grep timezone
Default timezone => Etc/GMT
date.timezone => Etc/GMT => Etc/GMT

Code:
# /var/asl/usr/bin/php -r 'echo date("Y-m-d H:i:s");'
2012-11-26 16:21:32

Code:
# date
Mon Nov 26 16:21:46 GMT 2012


But the GUI still states:
Code:
Atomic Secured Linux 3.0.35-5.el5.art
26 Nov 2012 @ 03:22 PM


CRServers on the thread below seemed to still have this issue too:
https://atomicorp.com/forums/viewtopic.php?f=3&t=6135


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Nov 26, 2012 2:08 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7423
Location: earth
This is totally changed around in 3.2, hopefully resolving what you're running into. You might want to undo your changes so you dont make your own weather on this.


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Nov 26, 2012 2:53 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Nov 23, 2010 7:30 am
Posts: 247
Location: Glasgow, UK
Thanks - I commented out the date.timezone line in /var/asl/etc/php.ini and restarted tortixd, but the GUI still is one hour behind.

Can you advise how this should be updated in 3.2?


Top
 Profile  
 
 Post subject: Re: ASL 3.0.22 Clock
Unread postPosted: Mon Nov 26, 2012 4:50 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7423
Location: earth
You shouldnt have to do anything in 3.2


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 16 posts ]  Go to page 1, 2  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group