TemperatureView time is 2h behind. #728

Closed
opened 2026-05-05 07:15:45 +00:00 by c24danli · 2 comments
Collaborator

TemperatureView is 2h behind our time.
There is a line to change the time to "sv-SE" and we create the timestamps in UTC.
{new Date(data.timestamp).toLocaleString('sv-SE')} in TemperatureView.

Mockup create data:

      sql_datatypes = "VARCHAR(20),TIMESTAMP,REAL", //Change REAL to Double when middleware can handle it
      id = 0,
      sensorId = "G-Building",
      timestamp = DateTime.UtcNow,
      temperature = Math.Round(rand.NextDouble() * 15 + 10, 2)
TemperatureView is 2h behind our time. There is a line to change the time to "sv-SE" and we create the timestamps in UTC. `{new Date(data.timestamp).toLocaleString('sv-SE')}` in TemperatureView. Mockup create data: ``` sql_datatypes = "VARCHAR(20),TIMESTAMP,REAL", //Change REAL to Double when middleware can handle it id = 0, sensorId = "G-Building", timestamp = DateTime.UtcNow, temperature = Math.Round(rand.NextDouble() * 15 + 10, 2) ```
Collaborator

PR #739

PR #739
Author
Collaborator

PR #739 is merged and closed will close this issue.

PR #739 is merged and closed will close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#728
No description provided.