We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fb964e commit 48cc65bCopy full SHA for 48cc65b
frontend/context/WebSocketContext.tsx
@@ -31,9 +31,16 @@ const DEFAULT_PROCESSING_CONFIG: ProcessingConfig = {
31
n_channels: 4,
32
};
33
34
+function formatTimestamp(raw: any): string {
35
+ const s = String(raw);
36
+ // ISO 8601: "2026-03-11T03:55:22.715574979Z" - extract "03:55:22"
37
+ if (s.includes('T')) return s.slice(11, 19);
38
+ return s;
39
+}
40
+
41
function normalizeBatch(batch: any): DataPoint[] {
- return batch.timestamps.map((time: number, i: number) => ({
- time: String(time),
42
+ return batch.timestamps.map((time: any, i: number) => ({
43
+ time: formatTimestamp(time),
44
signal1: batch.signals[0][i],
45
signal2: batch.signals[1][i],
46
signal3: batch.signals[2][i],
0 commit comments