fix: 调整命名 GTM => GMT

This commit is contained in:
云龙 王 2024-11-19 10:47:45 +08:00
parent 196547e80a
commit 123f6cc29b

View File

@ -98,7 +98,7 @@ public class TrackOrderService : ApplicationService
int hours = (int) x.TrackTimeZone; // 提取整数部分作为小时 int hours = (int) x.TrackTimeZone; // 提取整数部分作为小时
int minutes = (int) ((x.TrackTimeZone - hours) * 60); // 将小数部分乘以 60 转换为分钟 int minutes = (int) ((x.TrackTimeZone - hours) * 60); // 将小数部分乘以 60 转换为分钟
x.TrackGTMTimeZone = x.TrackGTMTimeZone =
$"GTM {(x.TrackTimeZone >= 0 ? "+" : "-")}{new TimeSpan(hours, minutes, 0).ToString().RemovePostFix(":00")}"; $"GMT {(x.TrackTimeZone >= 0 ? "+" : "-")}{new TimeSpan(hours, minutes, 0).ToString().RemovePostFix(":00")}";
}); });
return res; return res;
@ -149,7 +149,7 @@ public class TrackOrderService : ApplicationService
{ {
if (a.TrackTimeZoneValue == 0f) if (a.TrackTimeZoneValue == 0f)
{ {
a.TrackTimeZone = "GTM +00:00"; a.TrackTimeZone = "GMT +00:00";
} }
else if (Math.Abs(a.TrackTimeZoneValue - GlobalConst.NoneTrackTimeZone) < 1) else if (Math.Abs(a.TrackTimeZoneValue - GlobalConst.NoneTrackTimeZone) < 1)
{ {
@ -163,7 +163,7 @@ public class TrackOrderService : ApplicationService
var offset = new TimeSpan(hours, minutes, 0); var offset = new TimeSpan(hours, minutes, 0);
var timeZoneStr = offset.ToString(); var timeZoneStr = offset.ToString();
var flag = a.TrackTimeZoneValue > 0f ? "+" : ""; var flag = a.TrackTimeZoneValue > 0f ? "+" : "";
a.TrackTimeZone = $"GTM {flag}{timeZoneStr.RemovePostFix(":00")}"; a.TrackTimeZone = $"GMT {flag}{timeZoneStr.RemovePostFix(":00")}";
} }
}); });
return list; return list;