QTfrontend/main.cpp
changeset 6600 5810e42d8375
parent 6579 fc52f7c22c9b
child 6616 f77bb02b669f
--- a/QTfrontend/main.cpp	Thu Jan 26 02:06:57 2012 +0100
+++ b/QTfrontend/main.cpp	Thu Jan 26 16:04:08 2012 +0400
@@ -68,11 +68,11 @@
    QDate date = QDate::currentDate();
    
    //Christmas?
-   if (date.month() == 12 && date.daysInMonth() >= 24 
-	&& date.daysInMonth() <= 26)
+   if (date.month() == 12 && date.day() >= 24
+        && date.day() <= 26)
 	season = SEASON_CHRISTMAS;
    //Hedgewars birthday?
-   else if (date.month() == 10 && date.daysInMonth() == 31)
+   else if (date.month() == 10 && date.day() == 31)
    {
    	season = SEASON_HWBDAY;
 	years_since_foundation = date.year() - 2004;