Browse Source

* fixed bug in timezone to string conversion

git-svn-id: trunk@13849 -
ivost 16 years ago
parent
commit
b2cb314868
1 changed files with 6 additions and 2 deletions
  1. 6 2
      packages/libxml/src/xmlxsd.pas

+ 6 - 2
packages/libxml/src/xmlxsd.pas

@@ -363,7 +363,9 @@ begin
       tzUser:
       tzUser:
         begin
         begin
           if Timezone^.Hour >= 0 then
           if Timezone^.Hour >= 0 then
-            Result := Result + '+';
+            Result := Result + '+'
+          else
+            Result := Result + '-';
           Result := Result + Format('%2.2d:%2.2u', [Timezone^.Hour, Timezone^.Minute]);
           Result := Result + Format('%2.2d:%2.2u', [Timezone^.Hour, Timezone^.Minute]);
         end;
         end;
     end;
     end;
@@ -390,7 +392,9 @@ begin
       tzUser:
       tzUser:
         begin
         begin
           if Timezone^.Hour >= 0 then
           if Timezone^.Hour >= 0 then
-            Result := Result + '+';
+            Result := Result + '+'
+          else
+            Result := Result + '-';
           Result := Result + Format('%2.2d:%2.2u', [Timezone^.Hour, Timezone^.Minute]);
           Result := Result + Format('%2.2d:%2.2u', [Timezone^.Hour, Timezone^.Minute]);
         end;
         end;
     end;
     end;