do not display 0:xx:xx PM

This commit is contained in:
UbitUmarov
2020-06-12 20:02:55 +01:00
parent e404d671c8
commit 3bf0f6c407
2 changed files with 3 additions and 1 deletions

View File

@@ -1607,6 +1607,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
if (h > 12)
return string.Format("{0}:{1:00}:{2:00} PM", h - 12, m, s);
if (h == 12)
return string.Format("{0}:{1:00}:{2:00} PM", h, m, s);
return string.Format("{0}:{1:00}:{2:00} AM", h, m, s);
}