修改当前时间获取
This commit is contained in:
parent
acd6b4b6d7
commit
32511fc3aa
@ -111,8 +111,8 @@ public class HelloWorldController(IStringLocalizerFactory stringLocalizerFactory
|
|||||||
[HttpGet("time")]
|
[HttpGet("time")]
|
||||||
public IActionResult GetTime(
|
public IActionResult GetTime(
|
||||||
{
|
{
|
||||||
//string amount=88.88m.ToString("C");
|
//string amount=88.88.ToString("C");
|
||||||
return Ok(TimeProvider.UtcNow.ToString());
|
return Ok(TimeProvider.System.GetUtcNow().ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user