Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
Fixed compilation error in XBDateTime.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Hill committed May 27, 2012
1 parent 3ecbe47 commit b438ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/XBDateTime.cpp
Expand Up @@ -1287,15 +1287,15 @@ CStdString CDateTime::GetAsRFC1123DateTime() const
else if (weekDay > 6) else if (weekDay > 6)
weekDay = 6; weekDay = 6;
if (weekDay != time.GetDayOfWeek()) if (weekDay != time.GetDayOfWeek())
CLog::Log(LOGWARNING, "Invalid day of week %d in %s", time.GetDayOfWeek(), time.GetAsDBDateTime()); CLog::Log(LOGWARNING, "Invalid day of week %d in %s", time.GetDayOfWeek(), time.GetAsDBDateTime().c_str());


int month = time.GetMonth(); int month = time.GetMonth();
if (month < 1) if (month < 1)
month = 1; month = 1;
else if (month > 12) else if (month > 12)
month = 12; month = 12;
if (month != time.GetMonth()) if (month != time.GetMonth())
CLog::Log(LOGWARNING, "Invalid month %d in %s", time.GetMonth(), time.GetAsDBDateTime()); CLog::Log(LOGWARNING, "Invalid month %d in %s", time.GetMonth(), time.GetAsDBDateTime().c_str());


CStdString result; CStdString result;
result.Format("%s, %02i %s %04i %02i:%02i:%02i GMT", DAY_NAMES[weekDay], time.GetDay(), MONTH_NAMES[month - 1], time.GetYear(), time.GetHour(), time.GetMinute(), time.GetSecond()); result.Format("%s, %02i %s %04i %02i:%02i:%02i GMT", DAY_NAMES[weekDay], time.GetDay(), MONTH_NAMES[month - 1], time.GetYear(), time.GetHour(), time.GetMinute(), time.GetSecond());
Expand Down

0 comments on commit b438ab2

Please sign in to comment.