Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 01-09-2010, 09:47 AM
sirpablo sirpablo is offline
Hatchling Croc
 
Join Date: Dec 2008
Posts: 2
Default cron time

A nice feature to have would be the current server time on the cron page(s). Otherwise you are left to guess (unless you already know it). Thanks.
Reply With Quote
  #2  
Old 01-09-2010, 09:54 AM
junkstuff's Avatar
junkstuff junkstuff is offline
Junior Croc
 
Join Date: Feb 2008
Location: Have Laptop, Will Travel.
Posts: 106
Default Re: cron time

Believe they are all Texas CST. Look at your computer clock and convert to that. That is what I do.
Reply With Quote
  #3  
Old 01-09-2010, 09:57 AM
jackman-UK's Avatar
jackman-UK jackman-UK is offline
Hatchling Croc
 
Join Date: Dec 2009
Posts: 10
Default Re: cron time

All times are GMT-6
Reply With Quote
  #4  
Old 01-09-2010, 10:11 AM
sirpablo sirpablo is offline
Hatchling Croc
 
Join Date: Dec 2008
Posts: 2
Default Re: cron time

Quote:
Originally Posted by jackman-UK View Post
All times are GMT-6
That is cool, but how is everyone else supposed to know that? Wouldn't 1 line of php code take care of this?
Reply With Quote
  #5  
Old 01-09-2010, 10:51 AM
junkstuff's Avatar
junkstuff junkstuff is offline
Junior Croc
 
Join Date: Feb 2008
Location: Have Laptop, Will Travel.
Posts: 106
Default Re: cron time

GMT-6 is the same as US Central Standard Time (CST) Texas.
For some of us its easier to think that way.

Quote:
Originally Posted by jackman-UK View Post
All times are GMT-6
Reply With Quote
  #6  
Old 01-09-2010, 01:04 PM
jackman-UK's Avatar
jackman-UK jackman-UK is offline
Hatchling Croc
 
Join Date: Dec 2009
Posts: 10
Default Re: cron time

Quote:
Originally Posted by sirpablo View Post
That is cool, but how is everyone else supposed to know that? Wouldn't 1 line of php code take care of this?
That would require updating it on over 1000+ servers.
Reply With Quote
  #7  
Old 01-09-2010, 01:52 PM
junkstuff's Avatar
junkstuff junkstuff is offline
Junior Croc
 
Join Date: Feb 2008
Location: Have Laptop, Will Travel.
Posts: 106
Default Re: cron time

How about check it yourself. Create a file called like: servertime.php

PHP Code:
<?php

$time 
date(g:i a e);  

echo 
"Hostgator Time!  $time";

?>
Reply With Quote
  #8  
Old 01-09-2010, 05:41 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: cron time

Quote:
Originally Posted by sirpablo View Post
Quote:
Originally Posted by jackman-UK View Post
All times are GMT-6
That is cool, but how is everyone else supposed to know that?
Server time is somewhere on cPanel, at least on some skins.

Quote:
Originally Posted by jackman-UK View Post
Quote:
Originally Posted by sirpablo View Post
Wouldn't 1 line of php code take care of this?
That would require updating it on over 1000+ servers.
And if you want your local time, something like a zillion accounts.

Last edited by gwyneth; 01-09-2010 at 05:43 PM.
Reply With Quote
  #9  
Old 01-11-2010, 11:24 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 937
Default Re: cron time

You can actually change your Time zone in your shell session, by using "export TZ=TIMEZONE_HERE".

I know some cron daemon support the TZ environment variable, you might want to try adding TZ=TIMEZONE at the top of your cron file as a test... I've never tried it before though.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I see you get some trashing from time to time Blitzburgh Customer Reviews 1 11-28-2009 05:08 PM
Cron jobs time out - possible solutions lockburn Shared Hosting Support 1 08-28-2009 02:30 PM
Down time chelle64 Shared Hosting Support 3 06-12-2009 09:13 PM
why it take along time fadeee4 Shared Hosting Support 4 02-12-2009 04:51 PM
Being brushed off by support time after time lipofuse Shared Hosting Support 7 10-14-2008 09:06 PM

All times are GMT -5. The time now is 07:58 PM.