The system date and time are important for FortiGuard services, logging events, and sending alerts. The wrong time makes the log entries confusing and difficult to use.
When possible, use Network Time Protocol (NTP) to set the date and time. This is an automatic method that does not require manual intervention. However, you must ensure that the port is allowed through the firewalls on your network. FortiToken synchronization requires NTP in many situations.
For information about setting the system date and time, see Setting the system time.
- Go to Dashboard > Status. The date and time are displayed in the System Information widget, next to System Time.
- Go to System > Settings.
- In the System Time section, select NTP, and then configure the Time Zone, and Set Time settings as required.
set timezone ? command to display a list of timezones and the integers that represent them.
config system global
set timezone <integer>
config system ntp
set type custom
set server “ntp1.fortinet.net”
set server “ntp2.fortinet.net”
set ntpsync enable