Index: core/admin_templates/promo_blocks/promo_block_edit.tpl =================================================================== --- core/admin_templates/promo_blocks/promo_block_edit.tpl +++ core/admin_templates/promo_blocks/promo_block_edit.tpl @@ -98,61 +98,8 @@ - - - - - " id="" value="" tabindex="" size="" datepickerIcon="core/admin_templates/img/calendar_icon.gif">  - " - style="cursor: pointer; margin-right: 5px" - title="Date selector" - /> - - - " id="" value=""> - - - - " id="" value="" tabindex="" size="" datepickerIcon="core/admin_templates/img/calendar_icon.gif">  - " - style="cursor: pointer; margin-right: 5px" - title="Date selector" - /> - - - " id="" value=""> - - - - + + Index: core/install/english.lang =================================================================== --- core/install/english.lang +++ core/install/english.lang @@ -658,7 +658,8 @@ UnVuIFNjaGVkdWxl UnVuIFRpbWU= U2FtZSBBcyBUaHVtYg== - U2NoZWR1bGUgRGF0ZQ== + U2NoZWR1bGUgRnJvbQ== + U2NoZWR1bGUgVG8= U2VhcmNoIFRlcm0= U2VuZGVy U2VuZGVyJ3MgQWRkcmVzcw== Index: core/install/upgrades.sql =================================================================== --- core/install/upgrades.sql +++ core/install/upgrades.sql @@ -3039,3 +3039,6 @@ ADD INDEX (`Status`); INSERT INTO SystemSettings VALUES(DEFAULT, 'SessionLogRotationInterval', '2629800', 'In-Portal', 'in-portal:configure_advanced', 'la_section_SettingsLogs', 'la_config_SessionLogRotationInterval', 'select', '', '86400=la_opt_OneDay||604800=la_opt_OneWeek||1209600=la_opt_TwoWeeks||2629800=la_opt_OneMonth||7889400=la_opt_ThreeMonths||31557600=la_opt_OneYear||63115200=la_opt_TwoYears||94672800=la_opt_ThreeYears||157788000=la_opt_FiveYears||-1=la_opt_EmailLogKeepForever', 65.05, 0, 1, NULL); + +UPDATE PromoBlocks SET ScheduleToDate = ScheduleToDate + 86399 WHERE DATE_FORMAT(FROM_UNIXTIME(ScheduleTodate), "%H%i") = "0000"; +DELETE FROM LanguageLabels WHERE PhraseKey = "LA_FLD_SCHEDULEDATE"; Index: core/units/promo_blocks/promo_block_eh.php =================================================================== --- core/units/promo_blocks/promo_block_eh.php +++ core/units/promo_blocks/promo_block_eh.php @@ -197,8 +197,9 @@ $object = $event->getObject(); /* @var $object kDBItem */ - $date_from = $object->GetDBField('ScheduleFromDate_date'); - $date_to = $object->GetDBField('ScheduleToDate_date'); + $object->UpdateFormattersMasterFields(); + $date_from = $object->GetDBField('ScheduleFromDate'); + $date_to = $object->GetDBField('ScheduleToDate'); if ( $date_from && $date_to && $date_from >= $date_to ) { $object->SetError('ScheduleFromDate_date', 'wrong_date_interval'); Index: core/units/promo_blocks/promo_blocks_config.php =================================================================== --- core/units/promo_blocks/promo_blocks_config.php +++ core/units/promo_blocks/promo_blocks_config.php @@ -104,13 +104,13 @@ ), 'ScheduleFromDate' => Array ( 'type' => 'int', - 'formatter' => 'kDateFormatter', 'time_format' => '', 'input_time_format' => '', + 'formatter' => 'kDateFormatter', 'picker_default' => 'midnight', 'error_msgs' => Array ('wrong_date_interval' => '!la_ToDateMustBeGreaterThanFromDate!'), 'default' => null, ), 'ScheduleToDate' => Array ( 'type' => 'int', - 'formatter' => 'kDateFormatter', 'time_format' => '', 'input_time_format' => '', + 'formatter' => 'kDateFormatter', 'picker_default' => 'midnight +1 day -1 second', 'error_field' => 'ScheduleFromDate', 'default' => null, ), @@ -144,4 +144,4 @@ ), ), ), -); \ No newline at end of file +);