Skip Menu |

This queue is for tickets about the Text-DHCPLeases CPAN distribution.

Report information
The Basics
Id: 89357
Status: new
Priority: 0/
Queue: Text-DHCPLeases

People
Owner: Nobody in particular
Requestors: dana [...] dana.is
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Text::DHCPLeases bug: Inability to parse 'local' (epoch) time format
Date: Tue, 8 Oct 2013 23:09:07 -0500
To: bug-Text-DHCPleases [...] rt.cpan.org
From: dana <dana [...] dana.is>
Hello! The ISC DHCP server has a configuration directive called db-time-format, described here: http://linux.die.net/man/5/dhcpd.leases By default, this directive is set to 'default' (naturally), which produces date/time values like this: starts 3 2013/10/09 03:28:27; Show quoted text
>
Text::DHCPLeases handles this OK, but if the option is set to 'local', it chokes: Text::DHCPLeases::Object::parse Error: Statement not recognized: 'starts Show quoted text
> epoch 1381289307; # Tue Oct 08 22:28:27 2013' at > /usr/local/share/perl/5.14.2/Text/DHCPLeases.pm line 148 >
For clarity's sake, this is the way the date/time appears with this option set: starts epoch 1381289307; # Tue Oct 08 22:28:27 2013 Show quoted text
>
I think this requires only a small change to the date matching in Object.pm, but i am not very smart with Perl. Ubuntu Linux 12.04.3 x64 Perl 5.14.2 Text::DHCPLeases 1.0 Cheers dana