From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] php.ini: set date.timezone to UTC
Date: Sat, 02 May 2015 00:23:10 +0200 [thread overview]
Message-ID: <5543FCCE.2000904@mind.be> (raw)
In-Reply-To: <1430503955-24928-1-git-send-email-bos@je-eigen-domein.nl>
On 01/05/15 20:12, Floris Bos wrote:
> Prevent a warning being logged each time a PHP date/time method is
> used by setting UTC as (default) timezone in php.ini
>
> Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
> ---
> package/php/php.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/php/php.mk b/package/php/php.mk
> index 3b9a117..7bd3f63 100644
> --- a/package/php/php.mk
> +++ b/package/php/php.mk
> @@ -288,6 +288,7 @@ define PHP_INSTALL_FIXUP
> rm -f $(TARGET_DIR)/usr/bin/phpize
> $(INSTALL) -D -m 0755 $(PHP_DIR)/php.ini-production \
> $(TARGET_DIR)/etc/php.ini
> + $(SED) 's/;date.timezone =/date.timezone = UTC/' $(TARGET_DIR)/etc/php.ini
Would it be possible to use BR2_TARGET_LOCALTIME (if set) instead? Something like:
ifeq ($(BR2_TARGET_LOCALTIME),)
PHP_LOCALTIME = UTC
else
PHP_LOCALTIME = $(BR2_TARGET_LOCALTIME)
endif
$(SED) 's%;date.timezone =.*%date.timezone = $(PHP_LOCALTIME)%' \
$(TARGET_DIR)/etc/php.ini
That is, assuming that php can deal with complex timezones like Europe/Brussels.
Regards,
Arnout
> endef
>
> PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2015-05-01 22:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-01 18:12 [Buildroot] [PATCH] php.ini: set date.timezone to UTC Floris Bos
2015-05-01 18:12 ` [Buildroot] [PATCH v2 1/3] php: fpm sapi: install startup script Floris Bos
2015-05-01 22:34 ` Arnout Vandecappelle
2015-05-01 22:58 ` Floris Bos
2015-05-01 23:06 ` Arnout Vandecappelle
2015-05-01 23:07 ` Arnout Vandecappelle
2015-05-02 7:44 ` Thomas Petazzoni
2015-05-01 18:12 ` [Buildroot] [PATCH v2 2/3] php: fpm sapi: install php-fpm.conf Floris Bos
2015-05-01 22:36 ` Arnout Vandecappelle
2015-05-02 7:45 ` Thomas Petazzoni
2015-05-01 18:12 ` [Buildroot] [PATCH v2 3/3] lighttpd: add option to enable php-fpm configuration Floris Bos
2015-05-02 21:17 ` Arnout Vandecappelle
2015-05-01 22:23 ` Arnout Vandecappelle [this message]
2015-05-01 23:08 ` [Buildroot] [PATCH] php.ini: set date.timezone to UTC Floris Bos
2015-05-02 7:49 ` Arnout Vandecappelle
2015-05-02 12:15 ` Floris Bos
2015-05-02 12:18 ` Gustavo Zacarias
2015-05-02 15:09 ` Floris Bos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5543FCCE.2000904@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.