зеркало из https://github.com/mozilla/pjs.git
convert found utc CVS date to local time to match branch b=414966 r=coop
This commit is contained in:
Родитель
931fd9e21b
Коммит
f81ace6b52
|
@ -6,6 +6,7 @@ package Bootstrap::Step::Tag;
|
|||
use Cwd;
|
||||
use File::Copy qw(move);
|
||||
use POSIX qw(strftime);
|
||||
use Date::Manip;
|
||||
|
||||
use MozBuild::Util qw(MkdirWithPath RunShellCommand);
|
||||
use Bootstrap::Util qw(CvsCatfile);
|
||||
|
@ -186,11 +187,11 @@ sub Execute {
|
|||
}
|
||||
|
||||
# relBranchDateSpec now has something like: "2006/12/05 19:12:58"
|
||||
my $relBranchDateSpec = $cvsDateSpec;
|
||||
# Strip off the time...
|
||||
$relBranchDateSpec =~ s/^\s*([\d\/]+).*/$1/;
|
||||
# Strip out the /'s; now we have our datespec: 20061205
|
||||
$relBranchDateSpec =~ s/\///g;
|
||||
# convert to local timezone
|
||||
my $relBranchDateSpec = ParseDate($cvsDateSpec);
|
||||
$relBranchDateSpec = Date_ConvTZ($relBranchDateSpec,'UTC');
|
||||
$relBranchDateSpec = UnixDate($relBranchDateSpec, '%Y%m%d');
|
||||
# now we have our datespec: 20061205
|
||||
|
||||
$geckoTag = $this->GenerateRelbranchName(milestone => $milestone,
|
||||
datespec => $relBranchDateSpec);
|
||||
|
|
Загрузка…
Ссылка в новой задаче