aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-21 00:44:57 +0000
committerMelanie Thielker2008-10-21 00:44:57 +0000
commit5865a2b8f8bbafe6e55a91f6f716c13a0ef7adb6 (patch)
tree87ef7bf9a231917e99863199390246a5eb11d596 /OpenSim/Framework
parentMantis #2439 (diff)
downloadopensim-SC-5865a2b8f8bbafe6e55a91f6f716c13a0ef7adb6.zip
opensim-SC-5865a2b8f8bbafe6e55a91f6f716c13a0ef7adb6.tar.gz
opensim-SC-5865a2b8f8bbafe6e55a91f6f716c13a0ef7adb6.tar.bz2
opensim-SC-5865a2b8f8bbafe6e55a91f6f716c13a0ef7adb6.tar.xz
Set a default creation date on inventory and task inventory items
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/InventoryItemBase.cs6
-rw-r--r--OpenSim/Framework/TaskInventoryItem.cs5
2 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs
index d165d86..25cef3f 100644
--- a/OpenSim/Framework/InventoryItemBase.cs
+++ b/OpenSim/Framework/InventoryItemBase.cs
@@ -25,6 +25,7 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using OpenMetaverse; 29using OpenMetaverse;
29 30
30namespace OpenSim.Framework 31namespace OpenSim.Framework
@@ -236,5 +237,10 @@ namespace OpenSim.Framework
236 get { return _creationDate; } 237 get { return _creationDate; }
237 set { _creationDate = value; } 238 set { _creationDate = value; }
238 } 239 }
240
241 public InventoryItemBase()
242 {
243 _creationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
244 }
239 } 245 }
240} 246}
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs
index 45b806e..fdb1137 100644
--- a/OpenSim/Framework/TaskInventoryItem.cs
+++ b/OpenSim/Framework/TaskInventoryItem.cs
@@ -336,5 +336,10 @@ namespace OpenSim.Framework
336 _itemID = UUID.Random(); 336 _itemID = UUID.Random();
337 _parentPartID = partID; 337 _parentPartID = partID;
338 } 338 }
339
340 public TaskInventoryItem()
341 {
342 _creationDate = (uint)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
343 }
339 } 344 }
340} 345}