diff --git a/SolarPower/Controllers/StationOverviewController.cs b/SolarPower/Controllers/StationOverviewController.cs index 1b2f144..11f682d 100644 --- a/SolarPower/Controllers/StationOverviewController.cs +++ b/SolarPower/Controllers/StationOverviewController.cs @@ -10,6 +10,7 @@ using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; +using System.Globalization; namespace SolarPower.Controllers { @@ -604,8 +605,8 @@ namespace SolarPower.Controllers switch (post.GroupType) { case 0: - a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM-dd"); - a.TIMESTAMP = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM-dd HH:mm:ss"); + a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM-dd "); + a.TIMESTAMP = Convert.ToDateTime(a.TIMESTAMP).ToString("HH tt", CultureInfo.InvariantCulture); break; case 1: a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM");