{"id":6709,"date":"2024-12-02T01:00:24","date_gmt":"2024-12-02T01:00:24","guid":{"rendered":"https:\/\/anymhost.id\/blog\/?p=6709"},"modified":"2024-12-02T01:00:24","modified_gmt":"2024-12-02T01:00:24","slug":"cara-mengatur-timezone-dengan-script-php","status":"publish","type":"post","link":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/","title":{"rendered":"Cara Mengatur TimeZone Dengan Script PHP"},"content":{"rendered":"<p>Dalam pengembangan aplikasi web, pengaturan TimeZone menjadi salah satu hal penting, terutama jika aplikasi Anda digunakan oleh pengguna dari berbagai wilayah. Dengan mengatur TimeZone yang sesuai, waktu yang ditampilkan di aplikasi Anda akan relevan dengan lokasi pengguna atau sesuai kebutuhan sistem. Artikel ini akan membahas cara mengatur TimeZone menggunakan PHP.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Daftar Isi<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#Mengapa-Penting-Mengatur-TimeZone\" >Mengapa Penting Mengatur TimeZone?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#Cara-Mengatur-TimeZone-di-PHP\" >Cara Mengatur TimeZone di PHP<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#1-Mengatur-TimeZone-Secara-Global-Dengan-PHP-Ini\" >1. Mengatur TimeZone Secara Global Dengan PHP Ini<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#2-Mengatur-TimeZone-di-Script-PHP\" >2. Mengatur TimeZone di Script PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#3-Mengatur-TimeZone-Berdasarkan-Pengguna\" >3. Mengatur TimeZone Berdasarkan Pengguna<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#Hal-yang-Perlu-Diperhatikan-Saat-Mengatur-TimeZone\" >Hal yang Perlu Diperhatikan Saat Mengatur TimeZone<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#1-TimeZone-Default-PHP\" >1. TimeZone Default PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#2-Penggunaan-Nama-TimeZone-yang-Valid\" >2. Penggunaan Nama TimeZone yang Valid<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Mengapa-Penting-Mengatur-TimeZone\"><\/span>Mengapa Penting Mengatur TimeZone?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Mengatur timezone berguna untuk:<\/p>\n<ol>\n<li>Mencatat waktu transaksi atau aktivitas pengguna dengan lebih akurat.<\/li>\n<li>Menampilkan waktu lokal bagi pengguna sehingga dapat meningkatkan pengalaman.<\/li>\n<li>Menyesuaikan log sistem dan database dengan waktu yang sama sehingga lebih mudah dicari.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Cara-Mengatur-TimeZone-di-PHP\"><\/span>Cara Mengatur TimeZone di PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PHP menyediakan fungsi bawaan untuk mengatur TimeZone. Berikut langkah-langkahnya:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1-Mengatur-TimeZone-Secara-Global-Dengan-PHP-Ini\"><\/span>1. Mengatur TimeZone Secara Global Dengan PHP Ini<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Anda dapat mengatur TimeZone secara global di file konfigurasi file dengan nama <strong>php.ini<\/strong>. Langkah pertama cari baris berikut di file php.ini<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">;date.timezone =<\/pre>\n<p>Ubah dan sesuaikan kode dengan zona waktu yang diinginkan seperti contoh berikut<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">date.timezone = \"Asia\/Jakarta\"<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"2-Mengatur-TimeZone-di-Script-PHP\"><\/span>2. Mengatur TimeZone di Script PHP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Jika Anda ingin mengatur TimeZone langsung di script, gunakan fungsi <strong>date_default_timezone_set()<\/strong>. Contoh script:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?php\r\n\/\/ Mengatur TimeZone menjadi Asia\/Jakarta\r\ndate_default_timezone_set('Asia\/Jakarta');\r\n?&gt;\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"3-Mengatur-TimeZone-Berdasarkan-Pengguna\"><\/span>3. Mengatur TimeZone Berdasarkan Pengguna<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Anda juga bisa mengatur TimeZone berdasarkan input pengguna, misalnya dengan form. Contoh script:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?php\r\nif (isset($_POST['timezone'])) {\r\n    $timezone = $_POST['timezone'];\r\n    date_default_timezone_set($timezone);\r\n    echo \"TimeZone berhasil diatur ke: $timezone&lt;br&gt;\";\r\n    echo \"Waktu saat ini: \" . date('Y-m-d H:i:s');\r\n}\r\n?&gt;\r\n&lt;form method=\"POST\"&gt;\r\n    &lt;label for=\"timezone\"&gt;Pilih TimeZone:&lt;\/label&gt;\r\n    &lt;select name=\"timezone\" id=\"timezone\"&gt;\r\n        &lt;option value=\"Asia\/Jakarta\"&gt;Asia\/Jakarta&lt;\/option&gt;\r\n        &lt;option value=\"America\/New_York\"&gt;America\/New_York&lt;\/option&gt;\r\n        &lt;option value=\"Europe\/London\"&gt;Europe\/London&lt;\/option&gt;\r\n    &lt;\/select&gt;\r\n    &lt;button type=\"submit\"&gt;Atur TimeZone&lt;\/button&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Hal-yang-Perlu-Diperhatikan-Saat-Mengatur-TimeZone\"><\/span>Hal yang Perlu Diperhatikan Saat Mengatur TimeZone<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Mengatur TimeZone dalam pengembangan aplikasi web menggunakan PHP merupakan langkah penting untuk memastikan data waktu yang relevan dan akurat. Namun, ada beberapa hal yang perlu diperhatikan agar implementasinya berjalan lancar dan sesuai dengan kebutuhan.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1-TimeZone-Default-PHP\"><\/span>1. TimeZone Default PHP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Secara default, PHP menggunakan UTC sebagai TimeZone jika tidak diatur. Lalu jika Anda tidak secara eksplisit menetapkan TimeZone, fungsi seperti date() atau strtotime() mungkin tidak memberikan hasil yang diharapkan, terutama jika pengguna berada di TimeZone yang berbeda.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2-Penggunaan-Nama-TimeZone-yang-Valid\"><\/span>2. Penggunaan Nama TimeZone yang Valid<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>PHP menggunakan standar nama TimeZone berbasis IANA Time Zone Database (contoh: Asia\/Jakarta, America\/New_York). Anda bisa menggunakan fungsi timezone_identifiers_list() untuk mendapatkan daftar nama TimeZone yang valid. Dan jangan menggunakan format yang tidak standar seperti GMT+7 atau WIB, karena ini tidak didukung dan dapat menyebabkan error. Anda bisa melihat daftar TimeZone pada link berikut =&gt; https:\/\/www.php.net\/manual\/en\/timezones.php<\/p>\n<p>Mengatur TimeZone di PHP penting untuk memastikan waktu yang ditampilkan di aplikasi Anda akurat dan sesuai kebutuhan. Anda dapat mengatur TimeZone melalui <strong>php.ini<\/strong> atau langsung di script menggunakan <strong>date_default_timezone_set()<\/strong>. Pastikan untuk selalu memvalidasi pengaturan TimeZone agar kompatibel dengan sistem dan kebutuhan pengguna.<\/p>\n<p>Semoga bermanfaat! \ud83d\ude0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dalam pengembangan aplikasi web, pengaturan TimeZone menjadi salah satu hal penting, terutama jika aplikasi Anda digunakan oleh pengguna dari berbagai wilayah. Dengan mengatur TimeZone yang sesuai, waktu yang ditampilkan di aplikasi Anda akan relevan dengan lokasi pengguna atau sesuai kebutuhan sistem. Artikel ini akan membahas cara mengatur TimeZone menggunakan PHP. Mengapa Penting Mengatur TimeZone? Mengatur [&hellip;]<\/p>\n","protected":false},"author":990005,"featured_media":6711,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[],"class_list":["post-6709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cara Mengatur TimeZone Dengan Script PHP - AnymHost<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cara Mengatur TimeZone Dengan Script PHP - AnymHost\" \/>\n<meta property=\"og:description\" content=\"Dalam pengembangan aplikasi web, pengaturan TimeZone menjadi salah satu hal penting, terutama jika aplikasi Anda digunakan oleh pengguna dari berbagai wilayah. Dengan mengatur TimeZone yang sesuai, waktu yang ditampilkan di aplikasi Anda akan relevan dengan lokasi pengguna atau sesuai kebutuhan sistem. Artikel ini akan membahas cara mengatur TimeZone menggunakan PHP. Mengapa Penting Mengatur TimeZone? Mengatur [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\" \/>\n<meta property=\"og:site_name\" content=\"AnymHost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anymhost\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-02T01:00:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kurumi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kurumi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\"},\"author\":{\"name\":\"Kurumi\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/person\/b4e7cf9f3f4c7ed4196f6c9f50bb6f98\"},\"headline\":\"Cara Mengatur TimeZone Dengan Script PHP\",\"datePublished\":\"2024-12-02T01:00:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\"},\"wordCount\":389,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png\",\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\",\"url\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\",\"name\":\"Cara Mengatur TimeZone Dengan Script PHP - AnymHost\",\"isPartOf\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png\",\"datePublished\":\"2024-12-02T01:00:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage\",\"url\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png\",\"contentUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png\",\"width\":900,\"height\":350,\"caption\":\"Cara Mengatur TimeZone Dengan Script PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/anymhost.id\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cara Mengatur TimeZone Dengan Script PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/anymhost.id\/blog\/#website\",\"url\":\"https:\/\/anymhost.id\/blog\/\",\"name\":\"AnymHost\",\"description\":\"Artikel Tips &amp; Berita Website Terbaru\",\"publisher\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/anymhost.id\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/anymhost.id\/blog\/#organization\",\"name\":\"AnymHost\",\"url\":\"https:\/\/anymhost.id\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png\",\"contentUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png\",\"width\":540,\"height\":540,\"caption\":\"AnymHost\"},\"image\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/anymhost\",\"https:\/\/instagram.com\/anymhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/person\/b4e7cf9f3f4c7ed4196f6c9f50bb6f98\",\"name\":\"Kurumi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/62d2ea28e676833a0f11bb7f28ddb27acccef53f7dd54758639e1676a006a6b9?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/62d2ea28e676833a0f11bb7f28ddb27acccef53f7dd54758639e1676a006a6b9?s=96&d=identicon&r=g\",\"caption\":\"Kurumi\"},\"description\":\"Having experience in PHP programming currently as a Content Creator at AnymHost\",\"url\":\"https:\/\/anymhost.id\/blog\/author\/kurumi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cara Mengatur TimeZone Dengan Script PHP - AnymHost","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/","og_locale":"en_US","og_type":"article","og_title":"Cara Mengatur TimeZone Dengan Script PHP - AnymHost","og_description":"Dalam pengembangan aplikasi web, pengaturan TimeZone menjadi salah satu hal penting, terutama jika aplikasi Anda digunakan oleh pengguna dari berbagai wilayah. Dengan mengatur TimeZone yang sesuai, waktu yang ditampilkan di aplikasi Anda akan relevan dengan lokasi pengguna atau sesuai kebutuhan sistem. Artikel ini akan membahas cara mengatur TimeZone menggunakan PHP. Mengapa Penting Mengatur TimeZone? Mengatur [&hellip;]","og_url":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/","og_site_name":"AnymHost","article_publisher":"https:\/\/www.facebook.com\/anymhost","article_published_time":"2024-12-02T01:00:24+00:00","og_image":[{"width":900,"height":350,"url":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png","type":"image\/png"}],"author":"Kurumi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kurumi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#article","isPartOf":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/"},"author":{"name":"Kurumi","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/person\/b4e7cf9f3f4c7ed4196f6c9f50bb6f98"},"headline":"Cara Mengatur TimeZone Dengan Script PHP","datePublished":"2024-12-02T01:00:24+00:00","mainEntityOfPage":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/"},"wordCount":389,"commentCount":0,"publisher":{"@id":"https:\/\/anymhost.id\/blog\/#organization"},"image":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage"},"thumbnailUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png","articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/","url":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/","name":"Cara Mengatur TimeZone Dengan Script PHP - AnymHost","isPartOf":{"@id":"https:\/\/anymhost.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage"},"image":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage"},"thumbnailUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png","datePublished":"2024-12-02T01:00:24+00:00","breadcrumb":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#primaryimage","url":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png","contentUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2024\/12\/Cara-Mengatur-TimeZone-Dengan-Script-PHP.png","width":900,"height":350,"caption":"Cara Mengatur TimeZone Dengan Script PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/anymhost.id\/blog\/cara-mengatur-timezone-dengan-script-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anymhost.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Cara Mengatur TimeZone Dengan Script PHP"}]},{"@type":"WebSite","@id":"https:\/\/anymhost.id\/blog\/#website","url":"https:\/\/anymhost.id\/blog\/","name":"AnymHost","description":"Artikel Tips &amp; Berita Website Terbaru","publisher":{"@id":"https:\/\/anymhost.id\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anymhost.id\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/anymhost.id\/blog\/#organization","name":"AnymHost","url":"https:\/\/anymhost.id\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png","contentUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png","width":540,"height":540,"caption":"AnymHost"},"image":{"@id":"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/anymhost","https:\/\/instagram.com\/anymhost"]},{"@type":"Person","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/person\/b4e7cf9f3f4c7ed4196f6c9f50bb6f98","name":"Kurumi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/62d2ea28e676833a0f11bb7f28ddb27acccef53f7dd54758639e1676a006a6b9?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/62d2ea28e676833a0f11bb7f28ddb27acccef53f7dd54758639e1676a006a6b9?s=96&d=identicon&r=g","caption":"Kurumi"},"description":"Having experience in PHP programming currently as a Content Creator at AnymHost","url":"https:\/\/anymhost.id\/blog\/author\/kurumi\/"}]}},"_links":{"self":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/posts\/6709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/users\/990005"}],"replies":[{"embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/comments?post=6709"}],"version-history":[{"count":0,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/posts\/6709\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/media\/6711"}],"wp:attachment":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/media?parent=6709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/categories?post=6709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/tags?post=6709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}