mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
do not display 0:xx:xx PM
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_OSSL_Functions.osSetEstateSunSettings(sunFixed, sunHour);
|
||||
}
|
||||
|
||||
public double osGetCurrentSunHour()
|
||||
public LSL_Float osGetCurrentSunHour()
|
||||
{
|
||||
return m_OSSL_Functions.osGetCurrentSunHour();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user