Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We want to set everything to Los Angeles tz. So The user will need to match the point tz to the his tz. The user will follow Option 1 first to match the both his and point timezones. Once done doing Option 1, we'll need to rewrite the tz on the his data to Los Angeles. To do this, go to folio and run the query below for all points (if you have multiple sites with different tzs, we recommend using siteRef in the query).

 Query: readAll(point).each x=> hisRewrite(x->id) (val, ts) => [ts.toTimeZone("Los_Angeles"), val]

Note: Change "Los_Angeles" part to what tz timezone you want it to be.

Then once changing the his tz to Los Angeles, go to the site and change the timezone to Los Angeles and sync it to all points. Thats it, everything should now be using Los Angeles tz.

Changing to new tz

If for some reason the tz isn't what you want and you want to change it. The user would first change the his tz and then the point tz.

Step 1: 

We'll need to rewrite the tz . Follow Option 2 above first, then once set, follow Option 2on the his data to Los Angeles (or whatever timezone you want). To do this, go to folio and run the query below for all points (if you have multiple sites with different tzs, we recommend using siteRef in the query).

Query: readAll(point).each x=> hisRewrite(x->id) (val, ts) => [ts.toTimeZone("Los_Angeles"), val]

Note: Change "Los_Angeles" part to what timezone you want it to be.

Step 2: Go to the site and change the timezone to Los Angeles and Sync it to all points. Thats it.