Browse Source

fix the logic

rachels 4 years ago
parent
commit
ae029117bd
1 changed files with 3 additions and 3 deletions
  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