From e7a31a057b57f84c954ca9ed01563dfe324ae510 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 2 Jan 2013 20:09:59 +0000 Subject: [PATCH] Have Template support the more elegant TZUtils approach for translation to Windows timezones from POSIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 070e56624..01607c92d 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -1,4 +1,5 @@ #!/usr/bin/perl +use xCAT::TZUtils; # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html package xCAT::Template; @@ -185,6 +186,7 @@ sub subvars { $inc =~ s/#INCLUDE_PTRNLIST:([^#^\n]+)#/includefile($1,0,2)/eg; $inc =~ s/#INCLUDE_RMPKGLIST:([^#^\n]+)#/includefile($1,0,3)/eg; $inc =~ s/#INCLUDE:([^#^\n]+)#/includefile($1, 0, 0)/eg; + $inc =~ s/#WINTIMEZONE#/xCAT::TZUtils::get_wintimezone()/e; $inc =~ s/#HOSTNAME#/$node/g; my $nrtab = xCAT::Table->new("noderes");