openrowingmonitor icon indicating copy to clipboard operation
openrowingmonitor copied to clipboard

Recording's file names have UTC date/time, not local

Open fish2eggs opened this issue 1 year ago • 3 comments

On a raspberry pi 3b+ with

$ uname -a
Linux rower 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
$ sudo ./updateopenrowingmonitor.sh 
Update script for Open Rowing Monitor

Checking for new version...
You are using the latest version of Open Rowing Monitor from branch "v1beta".

The filenames created for the *_rowingData.csv, *_raw.csv and *_rowing.tcx files have the UTC date/time in them rather than the local time.

After 10 strokes:

$ ls -l /opt/openrowingmonitor/data/recordings/2023/05/
total 12
-rw-r--r-- 1 root root 3846 May 17 12:46 2023-05-17_02-46-21_rowingData.csv
-rw-r--r-- 1 root root 5555 May 17 12:46 2023-05-17_02-46-21_rowing.tcx
$ date 
Wed 17 May 2023 12:47:00 AEST

I'm in Australia/Sydney time zone which is 10 hours ahead of UTC.

$ cat /etc/timezone 
Australia/Sydney

Assumption mode ON: I assume ORM isn't picking up the timezone, but I don't know how to fix this. The system timezone is correct.

fish2eggs avatar May 17 '23 02:05 fish2eggs