Commit 042574f
committed
fix(dup): last_connection / last_disconnection timestamp unit
timestamps were in millisecond precision, but `DateTime.from_unix!` was
given microsecond precision. This caused datetimes to be incorrect.
this was the result after setting up astarte in 5 minutes and running
astarte-stream-qt5-test
```
❯ docker compose exec -it scylla cqlsh -e 'select last_connection from test.devices;'
last_connection
---------------------------------
1970-01-21 03:48:22.216000+0000
```
Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>1 parent 1ed24d1 commit 042574f
File tree
2 files changed
+4
-2
lines changed- apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/data_updater
2 files changed
+4
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
2244 | 2244 | | |
2245 | 2245 | | |
2246 | 2246 | | |
2247 | | - | |
| 2247 | + | |
2248 | 2248 | | |
2249 | 2249 | | |
2250 | 2250 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| |||
515 | 516 | | |
516 | 517 | | |
517 | 518 | | |
| 519 | + | |
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
| |||
0 commit comments