一波小改动

This commit is contained in:
Caiyanpeng committed 2021-12-30 16:51:04 +08:00
1 parent c5500c269f
commit 333c99fb46
18 files changed
+480 -137

No files matched your search

+14
View File
@@ -808,5 +808,19 @@ namespace Assets.Scripts
// Stops the location service if there is no need to query location updates continuously.
Input.location.Stop();
}
public static string ToLocalString(this DateTime time, string format)
{
if (App.GetLocalLanguage() == "en")
{
return time.ToString(format);
}
else
{
if(format == "HH:mm:ss dd-MM-yyyy")
return time.ToString("yyyy-MM-dd HH:mm:ss");
else
return time.ToString("yyyy-MM-dd");
}
}
}
}