label-studio
label-studio copied to clipboard
timeDisplayFormat discrepancy on TimeSeries data
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.
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?
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.