Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

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

Open
RrOoSsSsOo opened this issue Mar 28, 2017 · 1 comment

Comments

@RrOoSsSsOo
Copy link

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 RrOoSsSsOo changed the title $highchart->setOptions(array("global" => array("timezone" => "Europe/Rome"))); $highchart->setOptions(array("global" => array("timezone" => "..."))); doesn't work Mar 28, 2017
@Sydney-o9
Copy link

Sydney-o9 commented Apr 25, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants