Hello everyone!
I'm new in TRUENas, I have recently installed TRUENAS core into an old computer to give it a new life and now, I want to auto shutdown the server at a certain hour... I've read a post about it, and I've created a Cron job to execute the shutdown command the problem is that it's not executing correctly... or at least, at the time I want to...
I have set up the timezone in the "System/General" section. There I chose the timezone "Europe/Madrid" and in the "Time format" section I can see the actual time and date, correctly (21:08, for example), but if I go to the shell and type "date" it returns (23:08) it's +2h than it should be...
Reading other posts, I found one talking about the BIOS date, so I checked the BIOS date and time is correct and it also shows the actual date and time...
But the cron job is taking the shell time to execute the task, so everything will be executed +2h...
A "solution" could be set the cron job time 2h early i want to be executed, so then they will be executed on time, but I would like to know if there is a way to sync the time and date over the internet conection, for example, or just adjust the time using the same method as the "System/General" is using so I'll have the same time in all the sections...
I hope I explained well the issue I'd like to solve.
Thaaanks so much for the help in advance!!
I'm new in TRUENas, I have recently installed TRUENAS core into an old computer to give it a new life and now, I want to auto shutdown the server at a certain hour... I've read a post about it, and I've created a Cron job to execute the shutdown command the problem is that it's not executing correctly... or at least, at the time I want to...
I have set up the timezone in the "System/General" section. There I chose the timezone "Europe/Madrid" and in the "Time format" section I can see the actual time and date, correctly (21:08, for example), but if I go to the shell and type "date" it returns (23:08) it's +2h than it should be...
Reading other posts, I found one talking about the BIOS date, so I checked the BIOS date and time is correct and it also shows the actual date and time...
But the cron job is taking the shell time to execute the task, so everything will be executed +2h...
A "solution" could be set the cron job time 2h early i want to be executed, so then they will be executed on time, but I would like to know if there is a way to sync the time and date over the internet conection, for example, or just adjust the time using the same method as the "System/General" is using so I'll have the same time in all the sections...
I hope I explained well the issue I'd like to solve.
Thaaanks so much for the help in advance!!