Ver Fonte

fix the logic

rachels há 4 anos atrás
pai
commit
ae029117bd
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      locations/music_guitarlesson.qsrc

+ 3 - 3
locations/music_guitarlesson.qsrc

@@ -128,10 +128,10 @@ if $ARGS[0] = 'getdate':
 	if (month = 1 or month = 3 or month = 5 or month = 7 or month = 8 or month = 10 or month = 12) and newday > 31:
 		newday -= 31
 	elseif month = 2:
-		if (year mod 4 = 0) and newday > 29:
-			newday -= 29
+		if (year mod 4 = 0):
+		  if newday > 29: newday -= 29
 		else 
-			newday -= 28
+		  if newday > 28: newday -= 28
 		end
 	elseif newday > 30:
 		newday -= 30