use standard timestamp convertion of zypp
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 2 Feb 2006 14:03:18 +0000 (14:03 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 2 Feb 2006 14:03:18 +0000 (14:03 +0000)
zypp/source/yum/YUMPatchImpl.cc

index 8b00714..7098f0b 100644 (file)
@@ -50,7 +50,7 @@ namespace zypp
       : _source(source_r)
       {
        _patch_id = parsed.patchId;
-        _timestamp = atol(parsed.timestamp.c_str());
+        _timestamp = str::strtonum<time_t>(parsed.timestamp);
         _category = parsed.category;
         _reboot_needed = parsed.rebootNeeded;
         _affects_pkg_manager = parsed.packageManager;