Blob Blame Raw
--- stellarium-0.9.0/src/stelutils/StelUtils.cpp.tmx	2007-08-07 20:17:02.000000000 +0200
+++ stellarium-0.9.0/src/stelutils/StelUtils.cpp	2007-08-07 20:18:18.000000000 +0200
@@ -796,6 +796,7 @@ void get_tm_from_julian(double JD, struc
 	tm_time->tm_min = date.minutes;
 	tm_time->tm_hour = date.hours;
 	tm_time->tm_mday = date.days;
+	tm_time->tm_wday = fmod(JD + 1.0,7);
 	tm_time->tm_mon = date.months - 1;
 	tm_time->tm_year = date.years - 1900;
 	tm_time->tm_isdst = -1;