From: <buc...@us...> - 2011-01-24 15:17:15
|
Revision: 207 http://devmon.svn.sourceforge.net/devmon/?rev=207&view=rev Author: buchanmilne Date: 2011-01-24 15:17:07 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Send localised time in dm test as well (Wim Nelis) Modified Paths: -------------- trunk/modules/dm_msg.pm Modified: trunk/modules/dm_msg.pm =================================================================== --- trunk/modules/dm_msg.pm 2011-01-24 15:12:03 UTC (rev 206) +++ trunk/modules/dm_msg.pm 2011-01-24 15:17:07 UTC (rev 207) @@ -21,6 +21,7 @@ # Modules use strict; use Socket; + use POSIX qw/ strftime /; use dm_config; # Our global variable hash @@ -212,7 +213,8 @@ # Add the header my $host = $g{'nodename'}; $host =~ s/\./,/g; # Dont forget our FQDN stuff - $message = "status $host.dm $color ".(scalar localtime)."\n\n$message\n"; + my $now = $g{'bbdateformat'} ? strftime($g{'bbdateformat'},localtime) : scalar(localtime); + $message = "status $host.dm $color $now\n\n$message\n"; return $message; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |