Setting the Time Zone (timezone)
Parameters
Parameter | Description | Value |
---|---|---|
timezone |
Time zone. |
You can set the time zone by specifying either of the following:
You can run the ipmcset -d timezone -v <a> command to query the time zones supported. |
Usage Guidelines
In the time zones that use daylight saving time (DST), the iBMC automatically adjusts the time one hour forward when the DST starts and adjusts the time backward to standard time when the DST ends.
Example
# Set the iBMC time zone to +8:00.
iBMC:/->ipmcset -d timezone -v +8:00 Set time zone successfully.
# Set the iBMC time zone to GMT+8:00.
iBMC:/->ipmcset -d timezone -v GMT+8:00 Set time zone successfully.
# Query the iBMC time zone.
iBMC:/->ipmcget -d time 2014-06-28 Saturday 16:43:51 GMT+08:00
# Set the iBMC time zone to Asia/Shanghai.
iBMC:/->ipmcset -d timezone -v Asia/Shanghai Set time zone successfully.
# Query the iBMC time zone.
iBMC:/->ipmcget -d time 2017-09-06 Wednesday 16:43:51 Asia/Shanghai(GMT+08:00)