Mecha CMS

Date and time.

Date::zone()

Set default date time zone.

2.0.02.2.0static
Date::zone(void);
Date::zone(string $zone);

Example:

// Set current time zone
Date::zone('Asia/Jakarta');
// Get current time zone
echo Date::zone();

Find the complete list of time zones supported by PHP here.

ZoneTime Offset
Pacific/Pago_PagoGMT-11:00
Pacific/NiueGMT-11:00
Pacific/MidwayGMT-11:00
Pacific/HonoluluGMT-10:00
Pacific/TahitiGMT-10:00
Pacific/RarotongaGMT-10:00
Pacific/MarquesasGMT-09:30
America/AdakGMT-09:00
Pacific/GambierGMT-09:00
America/YakutatGMT-08:00
Pacific/PitcairnGMT-08:00
America/JuneauGMT-08:00
America/NomeGMT-08:00
America/SitkaGMT-08:00
America/AnchorageGMT-08:00
America/MetlakatlaGMT-08:00
America/WhitehorseGMT-07:00
America/CrestonGMT-07:00
America/Los_AngelesGMT-07:00
America/TijuanaGMT-07:00
America/Fort_NelsonGMT-07:00
America/HermosilloGMT-07:00
America/DawsonGMT-07:00
America/PhoenixGMT-07:00
America/VancouverGMT-07:00
America/Dawson_CreekGMT-07:00
America/DenverGMT-06:00
America/GuatemalaGMT-06:00
America/MazatlanGMT-06:00
America/Swift_CurrentGMT-06:00
America/BelizeGMT-06:00
America/ReginaGMT-06:00
America/BoiseGMT-06:00
America/YellowknifeGMT-06:00
America/TegucigalpaGMT-06:00
America/Cambridge_BayGMT-06:00
America/ChihuahuaGMT-06:00
America/EdmontonGMT-06:00
America/Costa_RicaGMT-06:00
Pacific/GalapagosGMT-06:00
Pacific/EasterGMT-06:00
America/El_SalvadorGMT-06:00
America/OjinagaGMT-06:00
America/InuvikGMT-06:00
America/ManaguaGMT-06:00
America/Indiana/Tell_CityGMT-05:00
America/ChicagoGMT-05:00
America/Indiana/KnoxGMT-05:00
America/AtikokanGMT-05:00
America/Bahia_BanderasGMT-05:00
America/GuayaquilGMT-05:00
America/BogotaGMT-05:00
America/CaymanGMT-05:00
America/EirunepeGMT-05:00
America/Rainy_RiverGMT-05:00
America/JamaicaGMT-05:00
America/CancunGMT-05:00
America/ResoluteGMT-05:00
America/Rio_BrancoGMT-05:00
America/PanamaGMT-05:00
America/North_Dakota/New_SalemGMT-05:00
America/North_Dakota/CenterGMT-05:00
America/North_Dakota/BeulahGMT-05:00
America/WinnipegGMT-05:00
America/MonterreyGMT-05:00
America/Mexico_CityGMT-05:00
America/MeridaGMT-05:00
America/MenomineeGMT-05:00
America/MatamorosGMT-05:00
America/Rankin_InletGMT-05:00
America/LimaGMT-05:00
America/Indiana/MarengoGMT-04:00
America/Grand_TurkGMT-04:00
America/Port_of_SpainGMT-04:00
America/PangnirtungGMT-04:00
America/KralendijkGMT-04:00
America/La_PazGMT-04:00
America/IqaluitGMT-04:00
America/NipigonGMT-04:00
America/Indiana/WinamacGMT-04:00
America/New_YorkGMT-04:00
America/NassauGMT-04:00
America/MontserratGMT-04:00
America/GrenadaGMT-04:00
America/Indiana/IndianapolisGMT-04:00
America/GuadeloupeGMT-04:00
America/Indiana/VincennesGMT-04:00
America/Indiana/VevayGMT-04:00
America/Indiana/PetersburgGMT-04:00
America/Kentucky/LouisvilleGMT-04:00
America/MartiniqueGMT-04:00
America/GuyanaGMT-04:00
America/HavanaGMT-04:00
America/MarigotGMT-04:00
America/ManausGMT-04:00
America/Lower_PrincesGMT-04:00
America/Kentucky/MonticelloGMT-04:00
America/Port-au-PrinceGMT-04:00
America/DominicaGMT-04:00
America/AsuncionGMT-04:00
America/TortolaGMT-04:00
America/TorontoGMT-04:00
America/Thunder_BayGMT-04:00
America/St_VincentGMT-04:00
America/St_ThomasGMT-04:00
America/St_LuciaGMT-04:00
America/St_KittsGMT-04:00
America/St_BarthelemyGMT-04:00
America/Santo_DomingoGMT-04:00
America/SantiagoGMT-04:00
America/DetroitGMT-04:00
America/AntiguaGMT-04:00
America/ArubaGMT-04:00
America/AnguillaGMT-04:00
America/BarbadosGMT-04:00
America/Blanc-SablonGMT-04:00
America/CuracaoGMT-04:00
America/CuiabaGMT-04:00
America/Puerto_RicoGMT-04:00
America/Campo_GrandeGMT-04:00
America/Boa_VistaGMT-04:00
America/CaracasGMT-04:00
America/Porto_VelhoGMT-04:00
America/BelemGMT-03:00
America/Argentina/Rio_GallegosGMT-03:00
America/FortalezaGMT-03:00
America/MonctonGMT-03:00
America/ThuleGMT-03:00
America/MontevideoGMT-03:00
America/CayenneGMT-03:00
America/HalifaxGMT-03:00
America/BahiaGMT-03:00
Antarctica/PalmerGMT-03:00
Antarctica/RotheraGMT-03:00
Atlantic/BermudaGMT-03:00
America/ParamariboGMT-03:00
America/Punta_ArenasGMT-03:00
Atlantic/StanleyGMT-03:00
America/Goose_BayGMT-03:00
America/Argentina/SaltaGMT-03:00
America/Glace_BayGMT-03:00
America/Argentina/San_LuisGMT-03:00
America/Argentina/MendozaGMT-03:00
America/Argentina/La_RiojaGMT-03:00
America/Argentina/JujuyGMT-03:00
America/Argentina/CordobaGMT-03:00
America/Argentina/CatamarcaGMT-03:00
America/AraguainaGMT-03:00
America/Argentina/San_JuanGMT-03:00
America/Argentina/Buenos_AiresGMT-03:00
America/RecifeGMT-03:00
America/SantaremGMT-03:00
America/Sao_PauloGMT-03:00
America/Argentina/UshuaiaGMT-03:00
America/Argentina/TucumanGMT-03:00
America/MaceioGMT-03:00
America/St_JohnsGMT-02:30
America/NoronhaGMT-02:00
America/MiquelonGMT-02:00
Atlantic/South_GeorgiaGMT-02:00
America/GodthabGMT-02:00
Atlantic/Cape_VerdeGMT-01:00
Africa/AccraGMT+00:00
Atlantic/AzoresGMT+00:00
Atlantic/ReykjavikGMT+00:00
Atlantic/St_HelenaGMT+00:00
America/ScoresbysundGMT+00:00
Africa/AbidjanGMT+00:00
America/DanmarkshavnGMT+00:00
Africa/NouakchottGMT+00:00
Africa/LomeGMT+00:00
Africa/FreetownGMT+00:00
Africa/BamakoGMT+00:00
Africa/DakarGMT+00:00
Africa/ConakryGMT+00:00
Africa/MonroviaGMT+00:00
Africa/BanjulGMT+00:00
Africa/OuagadougouGMT+00:00
Africa/BissauGMT+00:00
Africa/BanguiGMT+01:00
Atlantic/CanaryGMT+01:00
Atlantic/FaroeGMT+01:00
Europe/GuernseyGMT+01:00
Atlantic/MadeiraGMT+01:00
Africa/CasablancaGMT+01:00
Africa/AlgiersGMT+01:00
Africa/DoualaGMT+01:00
Europe/LondonGMT+01:00
Europe/LisbonGMT+01:00
Africa/BrazzavilleGMT+01:00
Europe/JerseyGMT+01:00
Europe/Isle_of_ManGMT+01:00
Europe/DublinGMT+01:00
Africa/KinshasaGMT+01:00
Africa/MalaboGMT+01:00
Africa/TunisGMT+01:00
Africa/LagosGMT+01:00
Africa/Sao_TomeGMT+01:00
Africa/Porto-NovoGMT+01:00
Africa/NiameyGMT+01:00
Africa/NdjamenaGMT+01:00
Africa/El_AaiunGMT+01:00
Africa/LibrevilleGMT+01:00
Africa/LuandaGMT+01:00
Europe/ZurichGMT+02:00
Europe/PodgoricaGMT+02:00
Europe/WarsawGMT+02:00
Europe/ViennaGMT+02:00
Europe/VaticanGMT+02:00
Europe/VaduzGMT+02:00
Europe/TiraneGMT+02:00
Europe/StockholmGMT+02:00
Europe/SkopjeGMT+02:00
Europe/SarajevoGMT+02:00
Europe/CopenhagenGMT+02:00
Europe/San_MarinoGMT+02:00
Europe/RomeGMT+02:00
Europe/PragueGMT+02:00
Europe/OsloGMT+02:00
Europe/ParisGMT+02:00
Europe/LuxembourgGMT+02:00
Europe/MonacoGMT+02:00
Europe/MaltaGMT+02:00
Europe/MadridGMT+02:00
Europe/KaliningradGMT+02:00
Europe/LjubljanaGMT+02:00
Europe/AmsterdamGMT+02:00
Europe/AndorraGMT+02:00
Europe/BudapestGMT+02:00
Europe/BrusselsGMT+02:00
Europe/BratislavaGMT+02:00
Europe/BerlinGMT+02:00
Europe/BelgradeGMT+02:00
Europe/BusingenGMT+02:00
Europe/GibraltarGMT+02:00
Europe/ZagrebGMT+02:00
Africa/LusakaGMT+02:00
Antarctica/TrollGMT+02:00
Africa/GaboroneGMT+02:00
Africa/HarareGMT+02:00
Africa/JohannesburgGMT+02:00
Africa/CairoGMT+02:00
Africa/CeutaGMT+02:00
Africa/KhartoumGMT+02:00
Africa/KigaliGMT+02:00
Africa/LubumbashiGMT+02:00
Africa/MaputoGMT+02:00
Africa/MaseruGMT+02:00
Africa/MbabaneGMT+02:00
Africa/BlantyreGMT+02:00
Africa/TripoliGMT+02:00
Africa/BujumburaGMT+02:00
Africa/WindhoekGMT+02:00
Europe/MoscowGMT+03:00
Africa/Dar_es_SalaamGMT+03:00
Europe/MinskGMT+03:00
Europe/MariehamnGMT+03:00
Asia/AmmanGMT+03:00
Asia/AdenGMT+03:00
Asia/BaghdadGMT+03:00
Asia/BahrainGMT+03:00
Antarctica/SyowaGMT+03:00
Europe/KirovGMT+03:00
Africa/AsmaraGMT+03:00
Africa/DjiboutiGMT+03:00
Africa/Addis_AbabaGMT+03:00
Europe/KievGMT+03:00
Africa/JubaGMT+03:00
Africa/KampalaGMT+03:00
Europe/IstanbulGMT+03:00
Europe/HelsinkiGMT+03:00
Europe/AthensGMT+03:00
Africa/MogadishuGMT+03:00
Europe/BucharestGMT+03:00
Africa/NairobiGMT+03:00
Europe/ChisinauGMT+03:00
Asia/HebronGMT+03:00
Asia/GazaGMT+03:00
Asia/NicosiaGMT+03:00
Europe/VilniusGMT+03:00
Asia/DamascusGMT+03:00
Europe/TallinnGMT+03:00
Indian/MayotteGMT+03:00
Europe/SofiaGMT+03:00
Asia/KuwaitGMT+03:00
Asia/QatarGMT+03:00
Europe/SimferopolGMT+03:00
Europe/UzhgorodGMT+03:00
Europe/ZaporozhyeGMT+03:00
Asia/RiyadhGMT+03:00
Asia/JerusalemGMT+03:00
Asia/FamagustaGMT+03:00
Indian/AntananarivoGMT+03:00
Asia/BeirutGMT+03:00
Indian/ComoroGMT+03:00
Europe/RigaGMT+03:00
Europe/AstrakhanGMT+04:00
Asia/MuscatGMT+04:00
Europe/VolgogradGMT+04:00
Indian/MauritiusGMT+04:00
Indian/MaheGMT+04:00
Asia/DubaiGMT+04:00
Asia/TbilisiGMT+04:00
Asia/BakuGMT+04:00
Asia/YerevanGMT+04:00
Europe/UlyanovskGMT+04:00
Europe/SamaraGMT+04:00
Europe/SaratovGMT+04:00
Indian/ReunionGMT+04:00
Asia/KabulGMT+04:30
Asia/TehranGMT+04:30
Asia/AqtauGMT+05:00
Asia/YekaterinburgGMT+05:00
Asia/TashkentGMT+05:00
Indian/KerguelenGMT+05:00
Asia/SamarkandGMT+05:00
Asia/AtyrauGMT+05:00
Asia/OralGMT+05:00
Indian/MaldivesGMT+05:00
Asia/AshgabatGMT+05:00
Asia/KarachiGMT+05:00
Asia/AqtobeGMT+05:00
Antarctica/MawsonGMT+05:00
Asia/DushanbeGMT+05:00
Asia/ColomboGMT+05:30
Asia/KolkataGMT+05:30
Asia/KathmanduGMT+05:45
Indian/ChagosGMT+06:00
Asia/AlmatyGMT+06:00
Asia/QyzylordaGMT+06:00
Asia/BishkekGMT+06:00
Antarctica/VostokGMT+06:00
Asia/OmskGMT+06:00
Asia/ThimphuGMT+06:00
Asia/UrumqiGMT+06:00
Asia/DhakaGMT+06:00
Asia/YangonGMT+06:30
Indian/CocosGMT+06:30
Asia/JakartaGMT+07:00
Asia/KrasnoyarskGMT+07:00
Asia/HovdGMT+07:00
Asia/NovosibirskGMT+07:00
Asia/Ho_Chi_MinhGMT+07:00
Asia/Phnom_PenhGMT+07:00
Asia/PontianakGMT+07:00
Asia/BarnaulGMT+07:00
Asia/NovokuznetskGMT+07:00
Indian/ChristmasGMT+07:00
Asia/TomskGMT+07:00
Asia/BangkokGMT+07:00
Antarctica/DavisGMT+07:00
Asia/VientianeGMT+07:00
Asia/ChoibalsanGMT+08:00
Asia/SingaporeGMT+08:00
Asia/KuchingGMT+08:00
Asia/MacauGMT+08:00
Asia/MakassarGMT+08:00
Asia/ManilaGMT+08:00
Asia/IrkutskGMT+08:00
Australia/PerthGMT+08:00
Asia/UlaanbaatarGMT+08:00
Asia/BruneiGMT+08:00
Asia/Hong_KongGMT+08:00
Asia/TaipeiGMT+08:00
Antarctica/CaseyGMT+08:00
Asia/ShanghaiGMT+08:00
Asia/Kuala_LumpurGMT+08:00
Australia/EuclaGMT+08:45
Asia/DiliGMT+09:00
Asia/JayapuraGMT+09:00
Asia/ChitaGMT+09:00
Asia/KhandygaGMT+09:00
Asia/TokyoGMT+09:00
Pacific/PalauGMT+09:00
Asia/YakutskGMT+09:00
Asia/PyongyangGMT+09:00
Asia/SeoulGMT+09:00
Australia/DarwinGMT+09:30
Australia/Broken_HillGMT+09:30
Australia/AdelaideGMT+09:30
Pacific/Port_MoresbyGMT+10:00
Pacific/SaipanGMT+10:00
Pacific/ChuukGMT+10:00
Pacific/GuamGMT+10:00
Antarctica/DumontDUrvilleGMT+10:00
Australia/SydneyGMT+10:00
Asia/Ust-NeraGMT+10:00
Asia/VladivostokGMT+10:00
Australia/MelbourneGMT+10:00
Australia/LindemanGMT+10:00
Australia/HobartGMT+10:00
Australia/BrisbaneGMT+10:00
Australia/CurrieGMT+10:00
Australia/Lord_HoweGMT+10:30
Pacific/NoumeaGMT+11:00
Antarctica/MacquarieGMT+11:00
Pacific/BougainvilleGMT+11:00
Pacific/KosraeGMT+11:00
Asia/SakhalinGMT+11:00
Asia/SrednekolymskGMT+11:00
Pacific/GuadalcanalGMT+11:00
Pacific/NorfolkGMT+11:00
Asia/MagadanGMT+11:00
Pacific/PohnpeiGMT+11:00
Pacific/EfateGMT+11:00
Pacific/TarawaGMT+12:00
Pacific/WakeGMT+12:00
Pacific/AucklandGMT+12:00
Pacific/MajuroGMT+12:00
Antarctica/McMurdoGMT+12:00
Pacific/NauruGMT+12:00
Asia/AnadyrGMT+12:00
Pacific/KwajaleinGMT+12:00
Pacific/FunafutiGMT+12:00
Pacific/FijiGMT+12:00
Asia/KamchatkaGMT+12:00
Pacific/WallisGMT+12:00
Pacific/ChathamGMT+12:45
Pacific/FakaofoGMT+13:00
Pacific/EnderburyGMT+13:00
Pacific/ApiaGMT+13:00
Pacific/TongatapuGMT+13:00
Pacific/KiritimatiGMT+14:00