Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  Retired» 1.2.1-RC Snapshot Feedback and Problems-RETIRED» PFSense Time
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: PFSense Time  (Read 1173 times)
0 Members and 1 Guest are viewing this topic.
vorgusa
Jr. Member
**
Offline Offline

Posts: 28


View Profile
« on: October 14, 2008, 05:24:35 pm »

I don't know if this is just me, but I can not seem to find out what time my PFSense Router thinks it is.  I was trying to look over my log entries and they had future times, but it took me a while just to find out that the time zone was set to africa.  Does anyone else think it would be helpful to have the time on the home screen and the logs area?
Logged
GruensFroeschli
Global Moderator
Hero Member
*****
Offline Offline

Posts: 3805


No i will not fix your computer!


View Profile WWW
« Reply #1 on: October 14, 2008, 05:30:23 pm »

System-->general setup?
Logged

We do what we must, because we can.
vorgusa
Jr. Member
**
Offline Offline

Posts: 28


View Profile
« Reply #2 on: October 14, 2008, 05:35:50 pm »

Yeah, that is where I found out that the timezone was set for africa... but on mine there is no actual time.  I can not see if there was a problem connecting to the NTP server and the time is completely off or when I log on for the first time and don't think about the timezone I do not see that the time is off on the home page.

Do other people have the time on their's? 
Logged
berniem
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #3 on: October 15, 2008, 09:06:36 pm »

I was also looking for such a thing and came up empty-handed.  (No, the current time isn't on the System->General Setup page, just the timezone.)  I eventually had to ssh into the machine to see what time it thought it was.

I was meaning to add it to the feature request list but haven't gotten around to it yet.  :-)
Logged
dro
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #4 on: October 16, 2008, 12:12:40 am »

You can get the time from the Status > System logs page, from the logs themselves. There is also a "OpenNTPD" tab that logs that side of things.

But yes it would be nice to have the current time/date on the front page/dashboard.
Logged
Perry
Hero Member
*****
Offline Offline

Posts: 972



View Profile
« Reply #5 on: October 16, 2008, 06:56:24 am »

You could ssh to your pfSense box (winscp or ctrl+l in ubuntu)
edit /usr/local/www/index.php
make a new line before
<p class="pgtitle">System Overview</p>
and add
Code:
<?
exec("/bin/date", $dateOutput, $dateStatus);
$currentDate = $dateOutput[0];
?>
and change
Quote
         <td width="25%" class="vncellt">Platform</td>
         <td width="75%" class="listr"><?=htmlspecialchars($g['platform']);?></td>
to
Quote
         <td width="25%" class="vncellt">Platform / Current Date </td>
         <td width="75%" class="listr"><?=htmlspecialchars($g['platform']);?> / <?=$currentDate;?></td>
Save
Logged

/Perry
1.2.1-RC1
built on Tue Jul 29 04:43:49 EDT 2008
mcrane
Sr. Member
****
Offline Offline

Posts: 485


View Profile
« Reply #6 on: October 16, 2008, 01:40:04 pm »

Another way to get the time is:

PFSense Menu -> Diagnostics -> Command

In the section titled PHP Execute in the Command text area box type the following:
echo date('r');

Then press the 'Execute' button and you will see the time and date.

Logged
vorgusa
Jr. Member
**
Offline Offline

Posts: 28


View Profile
« Reply #7 on: October 20, 2008, 07:48:46 am »

hmmm Not that I dislike PHP, but I tried just using date in the shell code area and I got 11:46 UTC and it is 7:46 ET  anyone know if those are the same? 
Logged
Perry
Hero Member
*****
Offline Offline

Posts: 972



View Profile
« Reply #8 on: October 20, 2008, 08:13:07 am »

Prolly as php date will show UTC time.
http://www.worldtimeserver.com/current_time_in_UTC.aspx
If you execute " date " in Execute Shell command or goto http://yourpfsenseip/status.php
you will see your local time.
 
Logged

/Perry
1.2.1-RC1
built on Tue Jul 29 04:43:49 EDT 2008
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.312 seconds with 22 queries.