X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=XMLWriter.py;h=267789cae189dc81c611648fc62d8efcd646382c;hb=b9d9d352f6a748d1c35696e7eec7de8bbb724556;hp=1311fb68631723a1ab03defcde68c5f3fffaa6d2;hpb=b2d7ed4b39a5a03fb8f264e26b0d04a502928ddf;p=planet-ucc.git diff --git a/XMLWriter.py b/XMLWriter.py index 1311fb6..267789c 100644 --- a/XMLWriter.py +++ b/XMLWriter.py @@ -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