Auto Fix SNTP and Clock for Indonesia Timezone - MikroTik Script RouterOS

Time is very important for computers to do the right thing. If your clock is wrong by a minute authenticator apps won't work. Wrong by an hour and Windows Networking has problems. Wrong by days and you risk SSL certificates expiring earlier (or later) than they should. VPNs may stop working. Datestamps on logs will be misleading. Generally, wrong time is a Bad Thing, and what is worse is the time the hotspot is out of sync with the Hotpspot Billing. Because Correct time is very important.

Manual Setup:

#==============================================
# Auto Repair TimeZone and clock By BuanaNET
#==============================================
# Waktu Indonesia Barat (WIB)  = +07:00
# Waktu Indonesia Tengah (WITA) = +08:00
# Waktu Indonesia Timur (WIT)  = +09:00 
#==============================================
# Ganti "+07:00" sesuaikan dengan daerah masing-masing
#==============================================
/system clock manual set time-zone="+07:00";
/system clock set time-zone-autodetec=no;
/system clock set time-zone-name="manual";
/ip cloud set update-time=no;
:local ntpServer "asia.pool.ntp.org";
:local primary [resolve $ntpServer];
:local secondary [resolve $ntpServer];
/system ntp client set primary-ntp $primary;
/system ntp client set secondary-ntp $secondary;
/system ntp client set enabled=yes;
Complete Script With Scheduler

/system scheduler
add interval=1d name=SETTING-TIMEZONE on-event="#=============================\
=================\r\
# Auto Repair TimeZone and clock By BuanaNET\r\
#==============================================\r\
# Waktu Indonesia Barat (WIB)  = +07:00\r\
# Waktu Indonesia Tengah (WITA) = +08:00\r\
# Waktu Indonesia Timur (WIT)  = +09:00 \r\
#==============================================\r\
# Ganti \"+07:00\" sesuaikan dengan daerah masing-masing\r\
#==============================================\r\
/system clock manual set time-zone=\"+07:00\";\r\
/system clock set time-zone-autodetec=no;\r\
/system clock set time-zone-name=\"manual\";\r\
/ip cloud set update-time=no;\r\
:local ntpServer \"asia.pool.ntp.org\";\r\
:local primary [resolve \$ntpServer];\r\
:local secondary [resolve \$ntpServer];\r\
/system ntp client set primary-ntp \$primary;\r\
/system ntp client set secondary-ntp \$secondary;\r\
/system ntp client set enabled=yes;" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup
Credit: www.o-om.com