summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-08-07 09:41:08 -0400
committerBrian Evans <grknight@gentoo.org>2018-08-07 09:41:08 -0400
commit9b0264e3ac1a1eca639a5d506c3d7d3a8396ed50 (patch)
treeb181385744f5ebe3c8ff0b6ab6dd733712a99172
parentUse PNG logos on archive pages (diff)
downloadplanet-9b0264e3ac1a1eca639a5d506c3d7d3a8396ed50.tar.gz
planet-9b0264e3ac1a1eca639a5d506c3d7d3a8396ed50.tar.bz2
planet-9b0264e3ac1a1eca639a5d506c3d7d3a8396ed50.zip
scripts/update-venus: Set default timezone to PHP calls for consistency
Also eliminates warning messages from PHP
-rwxr-xr-xscripts/update-venus4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update-venus b/scripts/update-venus
index 930dfbb5..15350e11 100755
--- a/scripts/update-venus
+++ b/scripts/update-venus
@@ -52,8 +52,8 @@ cp -a ${BASE_DIR}/htdocs/index.html \
cp -a ${BASE_DIR}/htdocs/universe/index.html \
${BASE_DIR}/htdocs/universe/archives/$(date +%G)/${DATE}.html
cd ${BASE_DIR}/htdocs/archives
-php index.php > index.html.gen
+php -d date.timezone=UTC index.php > index.html.gen
[[ $? == 0 ]] && mv index.html.gen index.html
cd ${BASE_DIR}/htdocs/universe/archives
-php index.php > index.html.gen
+php -d date.timezone=UTC index.php > index.html.gen
[[ $? == 0 ]] && mv index.html.gen index.html