Skip to content

X-Axis datetime Safari Timezone #1726

@Matthewloughton

Description

@Matthewloughton

First of all. Apex charts is incredible. It is so featureful and look and feel is amazing. THANK YOU

I will try and be as verbose as possible. I know how painful some users can be with reporting issues ;)

We are using a date time graph with option: datetimeUTC set to false

xaxis: {
type: 'datetime',
labels: {
datetimeUTC: false
}
}

It works perfectly in Chrome but the timezone is out in Safari. I am from UTC+2 and in safari it seems to become +4. The tooltips are fine though. Images below

Chrome (correct):
image

Safari (incorrect):
image

I took the liberty of looking around about the issue and came across this:
https://stackoverflow.com/questions/41338821/incorrect-timezone-in-safari-compared-to-chrome-ff-using-javascript-date

I went into your src and I've got a feeling it's got to do with something in your DateTime.js line 24. "getTimeStamp()"

Let me know if I can help further

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingxaxis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions