Login   Register  
PHP Classes
elePHPant
Icontem

File: zone.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of MT Jordan  >  calendar.class.php  >  zone.php  >  Download  
File: zone.php
Role: Documentation
Content type: text/plain
Description: timezone information
Class: calendar.class.php
Perpetual seven day calendar
Author: By
Last change:
Date: 11 years ago
Size: 740 bytes
 

Contents

Class file image Download
<?php

$offset = date('O');
$offset = str_replace('0', '', $offset);

echo '<div style="width: 600px; font-size: 10px; font-family: verdana;">For users who use remote hosts and want to sync the calendar to their local timezone, use the following steps:<br><br>Your web host\'s timezone offset from GMT is: ' .   date('Z') . ' seconds or ' . $offset . ' hrs<br><br>';
echo 'To find your local timezone offset, open the Date/Time Properties on your desktop and note your timezone settings. ie: (GMT -05:00) Eastern Time (US & Canada) This will be your local timezone offset and can be a positive or negative number. ie: -02:00 or 12:00. Enter this value in the $cal->user_offset variable in calendar.inc.php as -2 or 12.</div>';

?>