src/strip.vala
authorAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 09:15:42 +0000 (17:15 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 09:15:42 +0000 (17:15 +0800)
src/strip.vala

index c425806..ce5e7a5 100644 (file)
@@ -898,11 +898,11 @@ public class Strip : GLib.Object {
                                GLib.debug("Skip directory %s is newer than min year: %d", subpath, newest.get_year());
                                return;
                        }
-                       if (year == newest.get_year() &&  month < newest.get_month()) {
+                       if (year == newest.get_year() &&  month > newest.get_month()) {
                                GLib.debug("Skip directory %s is newer than min year: %d/%d", subpath, newest.get_year() , newest.get_month() );
                                return;
                        }
-               if (year == newest.get_year() &&  month == newest.get_month() && day < newest.get_day_of_month()) {
+               if (year == newest.get_year() &&  month == newest.get_month() && day > newest.get_day_of_month()) {
                                GLib.debug("Skip directory %s is newer than min year: %d/%d/%d", subpath, newest.get_year() , newest.get_month(), newest.get_day_of_month() );          
                                return;
                        }