Index: design/standard/templates/package/installers/ezcontentobject/advanced_options.tpl
===================================================================
--- design/standard/templates/package/installers/ezcontentobject/advanced_options.tpl	(revision 0)
+++ design/standard/templates/package/installers/ezcontentobject/advanced_options.tpl	(revision 0)
@@ -0,0 +1,18 @@
+{* DO NOT EDIT THIS FILE! Use an override template instead. *}
+<div id="package" class="create">
+    <div id="sid-{$current_step.id|wash}" class="pc-{$installer.type|wash}">
+
+    <form method="post" action={'package/install'|ezurl}>
+
+    {include uri="design:package/install/error.tpl"}
+
+    {include uri="design:package/install_header.tpl"}
+
+    <input type="checkbox" id="UseDatesFromPackage" name="UseDatesFromPackage" value="1" {if $use_dates_from_package}checked="checked"{/if} /> <label style="font-weight:normal;display:inline;" for="UseDatesFromPackage">{'Use content object modification and publication dates from the package.'|i18n('design/standard/package')}</label>
+
+    {include uri="design:package/navigator.tpl"}
+
+    </form>
+
+    </div>
+</div>
\ No newline at end of file

Property changes on: design\standard\templates\package\installers\ezcontentobject\advanced_options.tpl
___________________________________________________________________
Added: svn:eol-style
   + native

Index: kernel/classes/ezcontentobject.php
===================================================================
--- kernel/classes/ezcontentobject.php	(revision 22528)
+++ kernel/classes/ezcontentobject.php	(working copy)
@@ -5133,6 +5133,11 @@
         $contentObject->setAttribute( 'current_version', $activeVersion );
         */
         $contentObject->setAttribute( 'name', $name );
+        if ( isset( $options['use_dates_from_package'] ) && $options['use_dates_from_package'] )
+        {
+            $contentObject->setAttribute( 'published', eZDateUtils::textToDate( $domNode->getAttributeNS( 'http://ez.no/ezobject', 'published' ) ) );
+            $contentObject->setAttribute( 'modified', eZDateUtils::textToDate( $domNode->getAttributeNS( 'http://ez.no/ezobject', 'modified' ) ) );
+        }
         $contentObject->store();
 
         $versions   = $contentObject->versions();
Index: kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php
===================================================================
--- kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php	(revision 22528)
+++ kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php	(working copy)
@@ -56,6 +56,11 @@
                           'methods' => array( 'initialize' => 'initializeTopNodes',
                                               'validate' => 'validateTopNodes' ),
                           'template' => 'top_nodes.tpl' );
+        $steps[] = array( 'id' => 'advanced_options',
+                          'name' => ezi18n( 'kernel/package', 'Advanced options' ),
+                          'methods' => array( 'initialize' => 'initializeAdvancedOptions',
+                                              'validate' => 'validateAdvancedOptions' ),
+                          'template' => 'advanced_options.tpl' );
         $this->eZPackageInstallationHandler( $package,
                                              $type,
                                              $installItem,
@@ -83,7 +88,7 @@
     /*!
      \reimp
     */
-    function initializeSiteAccess( $package, $http, $step, &$persistentData, $tpl )
+    function initializeSiteAccess( $package, $http, $step, &$persistentData, $tpl, $module )
     {
         $ini = eZINI::instance();
         $availableSiteAccessArray = $ini->variable( 'SiteAccessSettings', 'RelatedSiteAccessList' );
@@ -134,7 +139,7 @@
     /*!
      \reimp
     */
-    function initializeTopNodes( $package, $http, $step, &$persistentData, $tpl, &$module )
+    function initializeTopNodes( $package, $http, $step, &$persistentData, $tpl, $module )
     {
         if ( !isset( $persistentData['top_nodes_map'] ) )
         {
@@ -203,12 +208,28 @@
         return $validate;
     }
 
+    function initializeAdvancedOptions( $package, $http, $step, &$persistentData, $tpl, $module )
+    {
+        if ( !isset( $persistentData['use_dates_from_package'] ) )
+        {
+            $persistentData['use_dates_from_package'] = 0;
+        }
+
+        $tpl->setVariable( 'use_dates_from_package', (bool)$persistentData['use_dates_from_package'] );
+    }
+
+    function validateAdvancedOptions( $package, $http, $currentStepId, &$stepMap, &$persistentData, &$errorList )
+    {
+        $persistentData['use_dates_from_package'] = $http->postVariable( 'UseDatesFromPackage', 0 );
+        return true;
+    }
+
     /*!
      \reimp
     */
     function finalize( $package, $http, &$persistentData )
     {
-        eZDebug::writeDebug( 'finalize is called', 'eZContentObjectPackageInstaller::finalize' );
+        eZDebug::writeDebug( 'finalize is called', __METHOD__ );
         $package->installItem( $this->InstallItem, $persistentData );
     }
 
Index: kernel/setup/steps/ezstep_create_sites.php
===================================================================
--- kernel/setup/steps/ezstep_create_sites.php	(revision 22528)
+++ kernel/setup/steps/ezstep_create_sites.php	(working copy)
@@ -878,7 +878,8 @@
                     $requiredPackages[] = $package;
                     if ( $package->attribute( 'install_type' ) == 'install' )
                     {
-                        $installParameters = array( 'site_access_map' => array( '*' => $userSiteaccessName ),
+                        $installParameters = array( 'use_dates_from_package' => true,
+                                                    'site_access_map' => array( '*' => $userSiteaccessName ),
                                                     'top_nodes_map' => array( '*' => 2 ),
                                                     'design_map' => array( '*' => $userDesignName ),
                                                     'language_map' => $languageMap,
