From c3d8b2fd890d7e486d8643957268c03df61657db Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Tue, 12 Apr 2016 18:16:51 +0200 Subject: dhcptailer: Remove $tgname dependency Ok, so this means we're bugged if an event is during new year's eve. --- clients/dhcptail.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'clients') diff --git a/clients/dhcptail.pl b/clients/dhcptail.pl index 9c2111f..e5d7d4a 100755 --- a/clients/dhcptail.pl +++ b/clients/dhcptail.pl @@ -9,13 +9,9 @@ use warnings; BEGIN { require "../include/config.pm"; - eval { - require "../include/config.local.pm"; - }; } -my $year = $nms::config::tgname; -$year =~ s/tg/20/; # hihi +my (undef,undef,undef,undef,undef,$year,undef,undef,undef) = gmtime(time); my %months = ( Jan => 1, -- cgit v1.2.3