Added a CSS file to allow proper formatting of the date and time line.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
}
|
||||
} else{
|
||||
$selectedTimezone = date_default_timezone_get();
|
||||
//date_default_timezone_set("America/Los_Angeles");
|
||||
$scriptTZ = date_default_timezone_get();
|
||||
}
|
||||
?>
|
||||
@@ -29,6 +28,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta name="author" content="efrick"/>
|
||||
<link href="/styles.css" type="text/css" rel="stylesheet"/>
|
||||
<link href="clock.css" type="text/css" rel="stylesheet"/>
|
||||
<script>var current_tz=<?php echo json_encode($scriptTZ);?></script>
|
||||
<script type="text/javascript" src="clock.js"></script>
|
||||
</head>
|
||||
@@ -39,12 +39,10 @@
|
||||
<div class="body">
|
||||
<?php //Print default time and date values for the JS to update.
|
||||
echo "The full date and time:".
|
||||
"<br>".
|
||||
"<br><span>".
|
||||
"<p id='time_body'>".
|
||||
date("D, M d, Y, H:i:s") .
|
||||
" GMT" . date("O") . " (" . date("T") . ")"."</p>\n\t\t";
|
||||
echo '<p>The user timezone is now set to ' . $selectedTimezone . "</p>\n\t\t";
|
||||
echo '<p>The system timezone is now set to ' . $scriptTZ . "</p>\n";
|
||||
date(" T")."</p><p> GMT". date("O") ."</p>\n\t\t</span>";
|
||||
?>
|
||||
<div class="tz_select">
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user