ObHighchartsBundle icon indicating copy to clipboard operation
ObHighchartsBundle copied to clipboard

$highchart->setOptions(array("global" => array("timezone" => "..."))); doesn't work

Open RrOoSsSsOo opened this issue 7 years ago • 1 comments

Using

$highchart = new Highchart();
$highchart->setOptions(array("global" => array("timezone" => "Europe/Rome")));
...

don't produce any Javascript code of type

Highcharts.setOptions({
    global: {
        timezone: 'Europe/Rome'
    }
});
Highcharts.chart('container', {
...

(I'm using v1.5 of OB\Highchart)

RrOoSsSsOo avatar Mar 28 '17 08:03 RrOoSsSsOo

For now, getTimezoneOffset is not supported by the bundle. See #94

In the meantime, you can use timezoneOffset like this:

$highchart = new Highchart();
$highchart->global->timezoneOffset(60); // 60 minutes offset

Sydney-o9 avatar Apr 25 '17 03:04 Sydney-o9