The TimezoneBundle adds support for guessing a appropiate Timezone serverside in your Symfony 2.1 application.
This Bundle offers Timezone detection via a Kernel-listener. Also included is a TimezoneValidator.
Included are 3 TimezoneGuessers
- geoip
- locale_mapper
- locale
You can define the order of which guesser should be called first. Once a guesser finds a appropiate timezone, the timezone will be stored in the session variable lunetics_timezone.
To use the geoip guesser and the locale guesser, the pecl-geoip extension must be installed and working.
This bundle is under the MIT license.
Matthias Breddin : @lunetics