minor simplification of some unix date functions in Util. No functional change.
parent
dbbc260d1a
commit
90907bf4fd
|
@ -527,14 +527,12 @@ namespace OpenSim.Framework
|
|||
|
||||
public static DateTime ToDateTime(ulong seconds)
|
||||
{
|
||||
DateTime epoch = UnixEpoch;
|
||||
return epoch.AddSeconds(seconds);
|
||||
return UnixEpoch.AddSeconds(seconds);
|
||||
}
|
||||
|
||||
public static DateTime ToDateTime(int seconds)
|
||||
{
|
||||
DateTime epoch = UnixEpoch;
|
||||
return epoch.AddSeconds(seconds);
|
||||
return UnixEpoch.AddSeconds(seconds);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue