Hi,
I have a line chart, which uses DateAxis as the x-Axis. My points all have a UTC timestamp (x-value) and a single double value (y-value).
When the chart gets rendered, primefaces (or jqplot) apparently adjusts the displayed time on the x-axis to my local time (which ist UTC+1).
Therefore, if my first data point has a time of 14:00, the chart will show the first point at 15:00.
This can easily be tested by changing the timezone of my computer, which also changes the data points' time in the displayed chart accordingly.
But I would like the chart to display the original UTC timestamp. How can I turn off this automatic time adjustment?
Thanks a lot in advance.
LineChart DateAxis - how to turn off local time adjusting
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
Which version of PrimeFaces do you use?
I ask because the way to solve this problem depends on the PF version.
I ask because the way to solve this problem depends on the PF version.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Posts: 7
- Joined: 05 Aug 2016, 17:26
Oh sorry, I forgot to mention that.
I'm using Primefaces 6.0 (https://repo1.maven.org/maven2/org/prim ... efaces/6.0)
I'm using Primefaces 6.0 (https://repo1.maven.org/maven2/org/prim ... efaces/6.0)
-
- Posts: 7
- Joined: 05 Aug 2016, 17:26
andyba wrote:Which version of PrimeFaces do you use?
I ask because the way to solve this problem depends on the PF version.
Dear andyba,
your last message implied that you could have a solution for my problem. I'd appreciate it if you would be so kind and maybe give me a hint what I could do to solve the issue?
Thanks in advance.
-
- Posts: 7
- Joined: 05 Aug 2016, 17:26
Hello and a happy new year!
I still have not found any solution to this problem. Does anyone have a clue how to solve this issue?
I still have not found any solution to this problem. Does anyone have a clue how to solve this issue?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 32 guests