Use Copenhagen timezone for dates
This commit is contained in:
parent
c48dea82e9
commit
8082b2b51c
2 changed files with 2 additions and 0 deletions
1
feed.php
1
feed.php
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
date_default_timezone_set(Europe/Copenhagen);
|
||||||
$config = require __DIR__ . "/config.php";
|
$config = require __DIR__ . "/config.php";
|
||||||
function x($s){ return htmlspecialchars((string)$s, ENT_XML1 | ENT_QUOTES, "UTF-8"); }
|
function x($s){ return htmlspecialchars((string)$s, ENT_XML1 | ENT_QUOTES, "UTF-8"); }
|
||||||
function nice_title($s){ return trim(ucwords(str_replace(['_','-'], ' ', $s))); }
|
function nice_title($s){ return trim(ucwords(str_replace(['_','-'], ' ', $s))); }
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
date_default_timezone_set(Europe/Copenhagen);
|
||||||
$config = require __DIR__ . "/config.php";
|
$config = require __DIR__ . "/config.php";
|
||||||
foreach (["videos_dir", "thumbs_dir", "uploads_dir"] as $d) if (!is_dir($config[$d])) mkdir($config[$d], 0775, true);
|
foreach (["videos_dir", "thumbs_dir", "uploads_dir"] as $d) if (!is_dir($config[$d])) mkdir($config[$d], 0775, true);
|
||||||
if (!is_dir(__DIR__ . "/cache")) mkdir(__DIR__ . "/cache", 0775, true);
|
if (!is_dir(__DIR__ . "/cache")) mkdir(__DIR__ . "/cache", 0775, true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue