diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Su/SuSongInit.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Su/SuSongInit.cs index fb8c494..2260bc8 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Su/SuSongInit.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Su/SuSongInit.cs @@ -155,8 +155,8 @@ namespace Mesnac.Action.ChemicalWeighing.Su dr[4] = x.Number; - dr[5] = Convert.ToDateTime(x.CreateTime).ToString("yyyy-MM-dd hh:mm:ss"); - dr[6] = Convert.ToDateTime(x.UpdateTime).ToString("yyyy-MM-dd hh:mm:ss"); + dr[5] = Convert.ToDateTime(x.CreateTime).ToString("yyyy-MM-dd HH:mm:ss"); + dr[6] = Convert.ToDateTime(x.UpdateTime).ToString("yyyy-MM-dd HH:mm:ss"); dr[7] = x.Remark; @@ -171,12 +171,12 @@ namespace Mesnac.Action.ChemicalWeighing.Su private string GetA() { - return Convert.ToDateTime(startDate.MCValue).ToString("yyyy-MM-dd") + " " + Convert.ToDateTime(startTime.MCValue).ToShortTimeString(); + return Convert.ToDateTime(startDate.MCValue).ToString("yyyy-MM-dd") + " " + Convert.ToDateTime(startTime.MCValue).ToString("HH:mm:ss"); } private string GetB() { - return Convert.ToDateTime(endDate.MCValue).AddHours(0).ToString("yyyy-MM-dd") + " " + Convert.ToDateTime(endTime.MCValue).ToShortTimeString(); + return Convert.ToDateTime(endDate.MCValue).AddHours(0).ToString("yyyy-MM-dd") + " " + Convert.ToDateTime(endTime.MCValue).ToString("HH:mm:ss"); } } }