aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Capabilities
diff options
context:
space:
mode:
authorHomer Horwitz2008-10-18 15:26:41 +0000
committerHomer Horwitz2008-10-18 15:26:41 +0000
commit3a75a54da1d973d0a8044a680c97bc2a54995548 (patch)
tree6ab775de65c290ac55b0310c828e0ade7e808403 /OpenSim/Framework/Communications/Capabilities
parentGuard against a null ref that can prevent objects from being persisted (diff)
downloadopensim-SC_OLD-3a75a54da1d973d0a8044a680c97bc2a54995548.zip
opensim-SC_OLD-3a75a54da1d973d0a8044a680c97bc2a54995548.tar.gz
opensim-SC_OLD-3a75a54da1d973d0a8044a680c97bc2a54995548.tar.bz2
opensim-SC_OLD-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.cs1
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 {