Manually configuring the system time of the firewall through the CLI

Configure the firewall system time using the CLI as follows:
1. Run the clock datetime HH:MM:SS YYYY-MM-DD command to set the current time.
2. Run the clock timezone time-zone-name { add | minus } offset command to set the time zone.
add is used to add the time-zone offset based on the Greenwich Mean Time (UTC). That is, you can calculate the time zone time identified by time-zone-name by adding the offset based on the default UTC time.
minus is used to subtract the specified time-zone offset based on UTC. That is, you can calculate the time zone time identified by time-zone-name by subtracting the offset based on the default UTC time.
3. Optional: Run the clock daylight-saving-time time-zone-name one-year start-time start-date end-time end-date offset or clock daylight-saving-time time-zone-name repeating start-time { { first | second | third | fourth | last } weekday month | start-date } end-time { { first | second | third | fourth | last } weekday month | end-date } offset [ start-year [ end-year ] ] command to set DST.
In the configuration of the periodical DST and DST start time and end time, the four configuration modes of date+date, week+week, date+week, and week+date are supported. For the configuration method, see the clock daylight-saving-time command.
Note:
If the current time is in DST, running the clock timezone time-zone-name { add | minus } offset command to set the time zone name will succeed. However, if you run the display clock command in this case, the time zone name displayed is the DST name. After the DST ends, the time zone name set previously is displayed.
4. Optional: Run the display clock [ utc ] command to view the system clock.

Scroll to top