CGDocumentManager: Holiday SQL statement relied on Windows Date which is culture specific. Now sent as culture insensitive FM Date for query.

This commit is contained in:
sam 2011-03-07 10:59:47 +00:00
parent 8e886f069a
commit a1450850d8
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ namespace IndianHealthService.ClinicalScheduling
//Table #15 //Table #15
setProgressDelegate(15); setProgressDelegate(15);
setStatusDelegate(statusConst + " Holiday"); setStatusDelegate(statusConst + " Holiday");
sCommandText = "SELECT NAME, DATE FROM HOLIDAY WHERE DATE > '" + DateTime.Today.ToShortDateString() + "'"; sCommandText = "SELECT NAME, DATE FROM HOLIDAY WHERE INTERNAL[DATE] > '" + FMDateTime.Create(DateTime.Today).DateOnly.FMDateString + "'";
ConnectInfo.RPMSDataTable(sCommandText, "HOLIDAY", m_dsGlobal); ConnectInfo.RPMSDataTable(sCommandText, "HOLIDAY", m_dsGlobal);
Debug.Write("LoadingGlobalRecordsets -- Holidays loaded\n"); Debug.Write("LoadingGlobalRecordsets -- Holidays loaded\n");