App::Cerberus::Plugin::TimeZone - Add time-zone information to App::Cerberus
version 0.11
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.
Time zone information is returned when an IPv4 address is passed in:
curl http://host:port/?ip=80.1.2.3
The GeoIP plugin must be loaded before this plugin. This plugin takes no configuration options:
plugins: - GeoIP: /opt/geoip/GeoLiteCity.dat - TimeZone
Clinton Gormley <drtech@cpan.org>
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.
To install App::Cerberus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Cerberus
CPAN shell
perl -MCPAN -e shell install App::Cerberus
For more information on module installation, please visit the detailed CPAN module installation guide.