diff options
author | Homer Horwitz | 2008-10-18 15:26:41 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-10-18 15:26:41 +0000 |
commit | 3a75a54da1d973d0a8044a680c97bc2a54995548 (patch) | |
tree | 6ab775de65c290ac55b0310c828e0ade7e808403 /OpenSim/Framework/Communications/Capabilities | |
parent | Guard against a null ref that can prevent objects from being persisted (diff) | |
download | opensim-SC-3a75a54da1d973d0a8044a680c97bc2a54995548.zip opensim-SC-3a75a54da1d973d0a8044a680c97bc2a54995548.tar.gz opensim-SC-3a75a54da1d973d0a8044a680c97bc2a54995548.tar.bz2 opensim-SC-3a75a54da1d973d0a8044a680c97bc2a54995548.tar.xz |
- Fix Util.UnixTimeSinceEpoch:
* Unix epoch starts at midnight, not at 8:00am
* All date/time handling should be done in UTC in the server, not in
the local timezone.
* Refactor out repeated computation of a constant value
- Added setting of CreationTime to some places where inventoryitems
are created
This fixes Mantis#2390.
Diffstat (limited to 'OpenSim/Framework/Communications/Capabilities')
-rw-r--r-- | OpenSim/Framework/Communications/Capabilities/Caps.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index fd43e89..28e56da 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -754,6 +754,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
754 | item.BasePermissions = 2147483647; | 754 | item.BasePermissions = 2147483647; |
755 | item.EveryOnePermissions = 0; | 755 | item.EveryOnePermissions = 0; |
756 | item.NextPermissions = 2147483647; | 756 | item.NextPermissions = 2147483647; |
757 | item.CreationDate = Util.UnixTimeSinceEpoch(); | ||
757 | 758 | ||
758 | if (AddNewInventoryItem != null) | 759 | if (AddNewInventoryItem != null) |
759 | { | 760 | { |