Initial Upload
[planet-ucc.git] / XMLWriter.py
index 1311fb6..267789c 100644 (file)
@@ -60,7 +60,8 @@ class Planet:
                                if lastItem == None:
                                        break
                                # this checks to see if it's a new day
-                               if time.localtime(lastItem.itemDate) != lastDate:
+                               if time.localtime(lastItem.itemDate)[6] != lastDate:
+                                       lastDate        = time.localtime(lastItem.itemDate)[6]
                                        workingDate     = PlanetDate(lastItem.itemDate)
                                        self.dates.append(workingDate)
                                # append the item to the current date

UCC git Repository :: git.ucc.asn.au