Table of Contents
< All Topics
Print

【SSLVPN】SSL VPN change device timezone

Issue Description

Change device timezone. In this guide will show how to change device timezone to Moscow (GMT+3).

Handling Process

  1. Check the support timezone in /usr/share/zoneinfo/
    file
  2. Check current system timezone with command timedatectl status
    file
  3. Change timezone with command timedatectl set-timezone Europe/Moscow
    file
  4. Goto /sf/webui/htdocs/html/sys/syscfg/sysCfgController.class.php add date_default_timezone_set(‘Europe/Moscow’); in function getDateAndTime().
    file
  5. Goto /sf/webui/htdocs/html/svpn/state/statechartController.class.php and add date_default_timezone_set(‘Europe/Moscow’); in function GetTimeZoneOffset().
    file

Root Cause

Solution

Change device timezone from backend. PHP supported timezone in location format or GMT format. For example, date_default_timezone_set(‘Asia/Kuala_Lumpur’); or date_default_timezone_set(‘Etc/GMT-8’);