summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 99e3010)
raw | patch | inline | side by side (parent: 99e3010)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Sep 2008 15:29:19 +0000 (15:29 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Sep 2008 15:29:19 +0000 (15:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12487 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/GosaSupportDaemon.pm | patch | blob | history |
index 93e70a722e11eb06c86919f66a7e4e1cb53b7e33..fb6fc7039bf1d1dcd1840b97963a0082d0bd5296 100644 (file)
sub get_time {
# Add an optional offset in seconds
- my $offset = shift || 0;
+ my $offset = $1 if shift =~ /^(\d+)$/ || 0;
my ($seconds, $minutes, $hours, $monthday, $month,
$year, $weekday, $yearday, $sommertime) = localtime(time+$offset);
$hours = $hours < 10 ? $hours = "0".$hours : $hours;