diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index d165d862cd..25cef3f350 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using OpenMetaverse; namespace OpenSim.Framework @@ -236,5 +237,10 @@ namespace OpenSim.Framework get { return _creationDate; } set { _creationDate = value; } } + + public InventoryItemBase() + { + _creationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; + } } } diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs index 45b806ef2f..fdb1137890 100644 --- a/OpenSim/Framework/TaskInventoryItem.cs +++ b/OpenSim/Framework/TaskInventoryItem.cs @@ -336,5 +336,10 @@ namespace OpenSim.Framework _itemID = UUID.Random(); _parentPartID = partID; } + + public TaskInventoryItem() + { + _creationDate = (uint)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; + } } }