fix: 调整命名 GTM => GMT
This commit is contained in:
parent
196547e80a
commit
123f6cc29b
@ -98,7 +98,7 @@ public class TrackOrderService : ApplicationService
|
||||
int hours = (int) x.TrackTimeZone; // 提取整数部分作为小时
|
||||
int minutes = (int) ((x.TrackTimeZone - hours) * 60); // 将小数部分乘以 60 转换为分钟
|
||||
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;
|
||||
@ -149,7 +149,7 @@ public class TrackOrderService : ApplicationService
|
||||
{
|
||||
if (a.TrackTimeZoneValue == 0f)
|
||||
{
|
||||
a.TrackTimeZone = "GTM +00:00";
|
||||
a.TrackTimeZone = "GMT +00:00";
|
||||
}
|
||||
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 timeZoneStr = offset.ToString();
|
||||
var flag = a.TrackTimeZoneValue > 0f ? "+" : "";
|
||||
a.TrackTimeZone = $"GTM {flag}{timeZoneStr.RemovePostFix(":00")}";
|
||||
a.TrackTimeZone = $"GMT {flag}{timeZoneStr.RemovePostFix(":00")}";
|
||||
}
|
||||
});
|
||||
return list;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user