一波小改动
This commit is contained in:
1 parent
c5500c269f
commit
333c99fb46
18 files changed
+480
-137
No files matched your search
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user