label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

timeDisplayFormat discrepancy on TimeSeries data

Open GHsoda opened this issue 1 year ago • 2 comments

Here is my labeling setting:

    <TimeSeries name="ts" valueType="url" value="$csv" sep="," timeColumn="Time" timeFormat="%Y-%m-%dT%H:%M:%S.%L%Z" timeDisplayFormat="%H:%M:%S.%L%Z">

        <Channel column="accelerometerAccelerationX(G)" units="G" displayFormat=",.1f" strokeColor="#1f77b4" legend="AccelerationX" />
        <Channel column="accelerometerAccelerationY(G)" units="G" displayFormat=",.1f" strokeColor="#ff7f0e" legend="AccelerationY" />
      	<Channel column="accelerometerAccelerationZ(G)" units="G" displayFormat=",.1f" strokeColor="#2C7873" legend="AccelerationZ" />
    </TimeSeries>

my data contains UTC offset so I need to adjust the to local timezone, however in each channel the it still shows UTC time, while in the overview it shows the correct local time. Screenshot 2024-02-29 at 14 26 21

GHsoda avatar Feb 29 '24 13:02 GHsoda

I see this issue too. I am not sure but this could be because of using d3.timeFormat in the case of htx-timeseries-channel and d3.utcParse in htx-timeseries-overview? One respects the locale and the other doesn't?

aoxolotl avatar Apr 26 '24 16:04 aoxolotl

I have a similar discrepancy in a simpler case and the result is just wrong. My time column has no time zone and I don't try to format with one either (timeFormat="%Y-%m-%d %H:%M:%S" timeDisplayFormat="%H:%M:%S"). The time shown on the overview axis is 7 hours behind the time in the data. The times shown in the channel axes and the hoverover text are correct. Screenshot 2024-09-16 at 6 22 32 PM

avishapiro avatar Sep 17 '24 01:09 avishapiro