aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-04-12 18:16:51 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-04-12 18:16:51 +0200
commitc3d8b2fd890d7e486d8643957268c03df61657db (patch)
tree06349416d7a2cb6489546f708720375fdace0266
parent3ff3b0f854fe6f14d5f7f8b8cd7bf91fc2abcaef (diff)
dhcptailer: Remove $tgname dependency
Ok, so this means we're bugged if an event is during new year's eve.
-rwxr-xr-xclients/dhcptail.pl6
1 files changed, 1 insertions, 5 deletions
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,