Fixed failing test
This commit is contained in:
@ -48,7 +48,7 @@ namespace ReportingServices.Test
|
||||
public void CheckStartDateForDayPassedInAndHoursAdded()
|
||||
{
|
||||
// Arrange
|
||||
string date = "2022-11-23 0:0:0";
|
||||
string date = "2022-11-23 00:00:00";
|
||||
|
||||
// Act
|
||||
string callerDate = APIHelperFunctions.GetDateWithOffsetAsAPIString("11/23/2022 12:30 PM", -12.5f);
|
||||
|
@ -36,7 +36,7 @@ namespace ReportingServices.HelperClasses
|
||||
DateTime date = DateTime.Parse(dateString);
|
||||
|
||||
if (fullDateTime)
|
||||
dateString = date.Year + "-" + date.Month + "-" + date.Day + " " + date.Hour + ":" + date.Minute + ":" + date.Second;
|
||||
dateString = date.ToString("yyyy-M-d HH:mm:ss");
|
||||
else
|
||||
dateString = date.Year + "-" + date.Month + "-" + date.Day + " 0:0:0";
|
||||
|
||||
|
Reference in New Issue
Block a user