diff --git a/YD_YiLu/Services/Impl/DeviceSyncService.cs b/YD_YiLu/Services/Impl/DeviceSyncService.cs index f333740..2d1a3c1 100644 --- a/YD_YiLu/Services/Impl/DeviceSyncService.cs +++ b/YD_YiLu/Services/Impl/DeviceSyncService.cs @@ -1123,7 +1123,7 @@ namespace YD_YiLu.Api.Services.Impl .Select(i => today.AddDays(i - 6)) .Select(day => new YtpGradeListItem { - Time = day.ToString("yyyy-MM-dd"), + Time = day.ToString("MM-dd"), Duration = "0", Count = "0" }) @@ -1147,7 +1147,7 @@ namespace YD_YiLu.Api.Services.Impl var daySeconds = dayTrains.Sum(x => x.Duration); return new YtpGradeListItem { - Time = day.ToString("yyyy-MM-dd"), + Time = day.ToString("MM-dd"), Duration = SecondsToHours(daySeconds), Count = dayTrains.Count.ToString() };