תשתמש ב tzselect (פקודה) בכדי לקבוע מיקום זמן (ישראל)
לאחר מכן תשתמש בפקודה
ודוגמה:
date 290910152015
29.9.15 שעה 10:15
תבצע הפעלה מחדש למחשב בכדי לבדיוק שאין הפרעות משעון ה bios המקומי של המערכת .
או לחילופין תאתחל את התהליכים שקשורים לשעון hw-clock sw-clock
קוד: |
cat /etc/init.d/hwclock
#!/sbin/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
extra_commands="save show"
description="Sets the local clock to UTC or Local Time."
description_save="Saves the current time in the BIOS."
description_show="Displays the current time in the BIOS."
: ${clock_adjfile:=${CLOCK_ADJFILE}}
: ${clock_args:=${CLOCK_OPTS}}
: ${clock_systohc:=${CLOCK_SYSTOHC}}
: ${clock:=${CLOCK:-UTC}}
if [ "$clock" = "UTC" ]; then
utc="UTC"
utc_cmd="--utc"
else
utc="Local Time"
utc_cmd="--localtime"
|