FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nvisentin_FTNT
Article Id 198636
Description
This article explains how to configure the date and time of a Shelf Manager. It includes the timezone and NTP configuration.

Scope
All Shelf Managers.

Solution
There are 2 ways to configure the time on the Shelf Manager.

1. The first solution is to set the date and time manually with the command below:
# date 03141636002016
Mon Mar 14 16:36:00 CET 2016

To make it persistent (The Shelf Manager must have a battery, otherwise the configuration will be lost at the next reboot):
# hwclock --systohc

2. The second solution is to obtain the time from a NTP server.  This is the preferred solution.

a) Reboot and break the boot sequence:
# reboot
The system is going down NOW !!
Sending SIGTERM to all processes.
shelfman[207]: Shelfman: Interrupted (signal 15).
shelfman[255]: RMCP: terminating server thread for 10.5.1.1:623
shelfman[207]: ipmc_power_terminate called
shelfman[232]: Cooling: Default cooling thread has been terminated...
shelfman[207]: Failed to close FET 0 @20 reg 2: err=-140
shelfman[207]: Failed to close FET 0 @20 reg 3: err=-140
shelfman[207]: Failed to close FET 1 @21 reg 2: err=-140
shelfman[207]: Failed to close FET 1 @21 reg 3: err=-140
shelfman[207]: Shelfman: Terminated, err=0, limit=0, 2147483647.

Terminated
# �

U-Boot 1.1.4 (Jun 26 2008 - 09:03:58)

CPU: Au1550 324 MHz, id: 0x02, rev: 0x00
Board: ShMM-500
S/N: 08010779
DRAM:  (Samsung K4S561633F) 64 MB
Flash: 16 MB
In:    serial
Out:   serial
Err:   serial
ADM1060: configuration version 1.5
Net:   Au1X00 ETHERNET
Hit any key to stop autoboot:  0 <<<< hit a key to enter U-boot (break boot sequence)
shmm500

b) Modify variables as follows (in EST timezone):
setenv timezone EST5
setenv time_server  10.5.0.3
setenv time_proto ntp

Note : EST is the timezone, 5 is the offset.  The offset specifies the time value that must be added to the local time to get a Coordinated Universal Time value.

To specify CET timezone, set:
setenv timezone CET-1

c) Save the variables and reboot to the main partition :
shmm500 saveenv
Saving Environment to EEPROM...
shmm500 reset

d) At the boot, the Shelf Manager tries to sync with the NTP server:
/etc/netconfig: Starting time synchronization with 10.5.0.3
Looking for host 10.5.0.3 and service ntp

e) Verify the time:
# date
Mon Mar 14 10:53:06 EST 2016

If the time is incorrect, either wait 5 minutes for the next NTP sync attempt or force NTP sync using the command:
# ntpdate -u -s 10.5.0.3
Looking for host 10.5.0.3 and service ntp
host found : 10.5.0.3

Optionally, modify the NTP sync interval (default is 300 seconds). Modify 'INTERVAL' value in /etc/timesync

Contributors