HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
17.6k stars 2.19k forks source link

timeDisplayFormat discrepancy on TimeSeries data #5522

Open GHsoda opened 4 months ago

GHsoda commented 4 months ago

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
aoxolotl commented 2 months ago

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?