Time of stoli server

kulkarniniraj1413

New Member
Messages
5
Reaction score
0
Points
0
Hi
I am trying to run a python script every day at specific time using cron job. But I dont know what is current time of server. My account is on stoli server. I tried a python script to get current time, but when I set a cron job 4-5 min after that time, it does not execute. I am able to execute same job using every 2 min setting (*/2 * * * * *). So can anybody tell me what time is cron job synchronised with?
 

kulkarniniraj1413

New Member
Messages
5
Reaction score
0
Points
0
Actually, I've got the time from python script using datetime.now function (and it is same as time.strftime). But the thing is, cron jobs are not run as per that time. I've accidentally figured out that cron time is 2 hrs less than the time which python script shows.
I hope admins can put up a clock on the cron-job page. Its hard to believe that such full-fledged site doesn't have any clock, at-least on the page where it is absolutely necessery.

Regard
Niraj
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
The server's local time will be GMT-5, I believe. It's CDT.
 

kulkarniniraj1413

New Member
Messages
5
Reaction score
0
Points
0
Yeah, as per my calculations, I think thats right. But there is need of a clock on cron page, since users might be from different time zones.
Anyway thanx

Niraj
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Yeah, as per my calculations, I think thats right. But there is need of a clock on cron page, since users might be from different time zones.
Anyway thanx

Niraj

As far as I know, that's impossible to do. cPanel is encrypted, so we can't edit it.
 

kulkarniniraj1413

New Member
Messages
5
Reaction score
0
Points
0
Cant they(admins) add a a div on that page? Otherwise even a seperate page( like the one after log-in) would be enough. At-least somewhere one should see current time.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
No, they cant. It's encrypted software.
 
Top