Permalink
Browse files

Updated CHANGELOG + docs

  • Loading branch information...
1 parent e6c45b8 commit 8e15606d0c373cd345c7089816e7f9cbf5d50885 @asm89 asm89 committed Mar 18, 2012
Showing with 26 additions and 5 deletions.
  1. +14 −0 CHANGELOG.md
  2. +0 −4 CHANGES
  3. +12 −1 Resources/doc/reference/installation.rst
View
@@ -0,0 +1,14 @@
+CHANGELOG
+=========
+
+A [BC BREAK] means the update will break the project for many reasons :
+
+* new mandatory configuration
+* new dependencies
+* class refactoring
+
+### 2012-03-18
+* Added a new way of determining the right timezone for the datetime output. You can now configure your own service for the timezone detection or use the naive approach provided by the bundle.
+
+### 2011-02-19
+* initial commit
View
@@ -1,4 +0,0 @@
-19/02/2011
-----------
-* initial commit
-
@@ -34,12 +34,23 @@ Configuration
-------------
You can configure the default timezone used by the date helper with the following configuration. By default the
-``php.ini`` value is used (retrieved by the ``date_default_timezone_get()`` function).
+``php.ini`` value is used (retrieved by the ``date_default_timezone_get()`` function). It is now possible to
+configure your own service for timezone detecting or use the naive approach provided by this bundle. If you
+configure your own service it should implement the ``Sonata\IntlBundle\Timezone\TimezoneDetectorInterface``.
The locale value used by the bundle is provided by the request.
+Example using a custom service:
+
.. code-block:: yaml
+ sonata_intl:
+ timezone:
+ service: my_custom_timezone_detector
+
+Or the naive approach mapping the locales to timezones:
+
+.. code-block:: yaml
sonata_intl:
timezone:
# default timezone used as fallback

0 comments on commit 8e15606

Please sign in to comment.