Skip to content

Instantly share code, notes, and snippets.

@devlatte
Created November 23, 2017 06:52
Show Gist options
  • Save devlatte/04b5b88d4e5883477bef9287876eae3e to your computer and use it in GitHub Desktop.
Save devlatte/04b5b88d4e5883477bef9287876eae3e to your computer and use it in GitHub Desktop.
Ganglia web timezone setting
# when 'browser timezone' is not working or not supported ganglia version
# ganglia/conf.php
# for graph(rddtool) timezone
$conf['rrdtool'] = "env TZ='Asia/Seoul' /usr/bin/rrdtool";
# ganglia/header.php
# for header (query) time
<?php
session_start();
date_default_timezone_set('Asia/Seoul');
...
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment