diff --git a/scripts/winsparkle.py b/scripts/winsparkle.py
index 2c9d2bfb7e9832068a4492f13a8ff3bc87207aa7..cbfe0cba8128ace44d4bc5336d0c8f40d0d46f24 100755
--- a/scripts/winsparkle.py
+++ b/scripts/winsparkle.py
@@ -59,15 +59,16 @@ if __name__ == "__main__":
     tree = ET.parse(sparkle_file)
     channel = tree.find("channel")
     attrib = {'url' : url,
-              'sparkle:version' : now.strftime("%Y/%m/%d"),
-              'sparkle:shortVersionString' : "nightly-" + now.strftime("%Y/%m/%d"),
+              'sparkle:version' : now.strftime("%Y%m%d"),
+              'sparkle:shortVersionString' : "nightly-" + now.strftime("%Y%m%d"),
               'sparkle:os' : os,
               'length' : length,
               'type' : "application/octet-stream"
     }
 
+    # remove all publications of the same day (but not same os)
     for item in tree.findall(".//item"):
-        if sameDate(now_timestamp,item.find("pubDate")) and not\
+        if sameDate(now_timestamp, item.find("pubDate")) and not\
         item.find("./enclosure[@sparkle:os='%s']" % os, namespace) is None:
             channel.remove(item)
 
@@ -79,5 +80,3 @@ if __name__ == "__main__":
     xml_out = open(sparkle_file,"wb")
     xml_out.write(reparsed_doc.toprettyxml(indent='  ', newl='\n',encoding="utf-8"))
     xml_out.close()
-
-