]> andersk Git - svn-all-fast-export.git/commitdiff
Output dates for annotated tags in the local timezone. localtime
authorAnders Kaseorg <andersk@mit.edu>
Sat, 13 Jun 2009 22:21:17 +0000 (18:21 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Tue, 6 Jul 2010 17:00:22 +0000 (13:00 -0400)
src/repository.cpp

index dd96060933a7714ccf95f4557f7f098cd6a0d54d..860df1ae5f3f758212c6d32e41f20a971d137e27 100644 (file)
@@ -219,10 +219,13 @@ void Repository::finalizeTags()
                 branchRef.prepend("refs/heads/");
 
             QTextStream s(&fastImport);
+            time_t t = tag.dt;
+            char zone[16];
+            strftime(zone, sizeof(zone), " %z", localtime(&t));
             s << "progress Creating annotated tag " << tagName << " from ref " << branchRef << endl
               << "tag " << tagName << endl
               << "from " << branchRef << endl
-              << "tagger " << QString::fromUtf8(tag.author) << ' ' << tag.dt << " -0000" << endl
+              << "tagger " << QString::fromUtf8(tag.author) << ' ' << tag.dt << zone << endl
               << "data " << message.length() << endl;
         }
 
This page took 0.225284 seconds and 5 git commands to generate.