My rclone sync command on my PC uses the local time. The same command on my phone always uses UTC. Why would this be any different?
Is there a global flag I can set to tell rclone to use the local time?
I can see here the touch command has a --localtime option: https://github.com/rclone/rclone/issues/4067
but I do not see any --localtime option on the global flags page: https://rclone.org/flags/
Because it's not a global flag, but only for the touch command.
It's super good to use the help template as there isn't enough information to answer your question on what's not working on the phone vs the PC.
Rclone will use whatever time you've configured to show times. This shouldn't affect syncing - time comparisons will be done in UTC.
How do you see that the times look different? With
How are you running rclone on your phone?
export TZ=Europe/London before running rclone (see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for full list)
Where and how can rclone be configured to show times?
I see the UTC timestand in a log I see all the INFO, DEBUG and ERROR lines show UTC which makes it a little difficult to troubleshoot. The same logs show local time on my PC.
On my phone I am running the rclone Magisk Module (https://github.com/Magisk-Modules-Repo/com.piyushgarg.rclone) which uses rclone version 1.53.0-DEV
The device itself to a local time and timezone. The other apps are showing local time.
Is this an environment variable or where can this be run?
I suggest you make an issue on that repo. What needs to happen is that the env var
TZ needs to be set I think but I don't know how you would do it in that framework.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.