From 597dfd81e6568dfd977c85cbad6817e89fac968a Mon Sep 17 00:00:00 2001 From: DelphiSerg Date: Sat, 1 Nov 2014 20:11:21 +0200 Subject: [PATCH] Update output-formatter.md --- docs/guide/output-formatter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/output-formatter.md b/docs/guide/output-formatter.md index 7ec3d591bc..d41a5d953f 100644 --- a/docs/guide/output-formatter.md +++ b/docs/guide/output-formatter.md @@ -113,7 +113,7 @@ echo Yii::$app->formatter->asDate('now', 'php:Y-m-d'); // 2014-10-06 ### Time zones When formatting date and time values, Yii will convert them to the [[yii\i18n\Formatter::timeZone|configured time zone]]. -Therefor the input value is assumed to be in UTC unless a time zone is explicitly given. For this reason +Therefore the input value is assumed to be in UTC unless a time zone is explicitly given. For this reason it is recommended to store all date and time values in UTC preferably as a UNIX timestamp, which is always UTC by definition. If the input value is in a time zone different from UTC, the time zone has to be stated explicitly like in the following example: