From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

App::Cerberus::Plugin::TimeZone - Add time-zone information to App::Cerberus

VERSION

version 0.11

DESCRIPTION

This plugin uses Time::OlsonTZ::Data to add time-zone information to Cerberus. For instance:

"tz": {
"short_name": "EDT",
"name": "America/New_York",
"dst": "1",
"gmt_offset": "-14400"
}

The time-zone is deduced from the IP address, via Geo::IP.

REQUEST PARAMS

Time zone information is returned when an IPv4 address is passed in:

CONFIGURATION

The GeoIP plugin must be loaded before this plugin. This plugin takes no configuration options:

plugins:
- GeoIP: /opt/geoip/GeoLiteCity.dat
- TimeZone

AUTHOR

Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Clinton Gormley.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.