Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the timezones of the clocks in the bottom right of the graphview…

… customisable.
  • Loading branch information...
commit a05d33f9c528e99cfcfe23b76d95a0649be26d59 1 parent 11cdfc5
@lozzd authored
Showing with 8 additions and 2 deletions.
  1. +6 −0 config.php
  2. +2 −2 graphview.php
View
6 config.php
@@ -46,6 +46,12 @@
);
+# Timezone settings
+# Set the timezone for the two clocks (one large one small) in the bottom right of the graphs (e.g. EST, UTC)
+$largetz = "UTC";
+$smalltz = "BST";
+
+
# Disable debugging
error_reporting(0);
View
4 graphview.php
@@ -80,8 +80,8 @@
<img src="<?php echo $month ?>">
<img src="<?php echo $year ?>">
- <div style="margin-top: 10px; font-size: 48px; text-align: center;"><?php echo date('j/n/y G:i T'); ?></div>
- <div style="font-size: 40px; text-align: center;"><?php echo date_format(date_create('now', timezone_open('EST')), 'j/n/y G:i T'); ?></div>
+ <div style="margin-top: 10px; font-size: 48px; text-align: center;"><?php echo date_format(date_create('now', timezone_open("$largetz")), 'j/n/y G:i T'); ?></div>
+ <div style="font-size: 40px; text-align: center;"><?php echo date_format(date_create('now', timezone_open("$smalltz")), 'j/n/y G:i T'); ?></div>
</td>
</tr>
Please sign in to comment.
Something went wrong with that request. Please try again.