Index: branches/5.3.x/core/install/english.lang =================================================================== diff -u -N -r16395 -r16531 --- branches/5.3.x/core/install/english.lang (.../english.lang) (revision 16395) +++ branches/5.3.x/core/install/english.lang (.../english.lang) (revision 16531) @@ -297,6 +297,7 @@ VW5rbm93biBzZWN0aW9u VXNlciBCYW5uZWQ= dXNlciBub3QgZm91bmQ= + IlNjaGVkdWxlZCBUbyIgZGF0ZS90aW1lIG11c3QgYmUgYmVmb3JlICJTY2hlZHVsZWQgRnJvbSI= WW91IG11c3Qgc2VsZWN0IG9ubHkgb25lIHVzZXI= SW5jb3JyZWN0IGRhdGUgZm9ybWF0LCBwbGVhc2UgdXNlICglcykgZXguICglcyk= SW5jb3JyZWN0IGRhdGEgZm9ybWF0LCBwbGVhc2UgdXNlIHt0eXBlfQ== @@ -658,7 +659,8 @@ UnVuIFNjaGVkdWxl UnVuIFRpbWU= U2FtZSBBcyBUaHVtYg== - U2NoZWR1bGUgRGF0ZQ== + U2NoZWR1bGUgRnJvbQ== + U2NoZWR1bGUgVG8= U2VhcmNoIFRlcm0= U2VuZGVy U2VuZGVyJ3MgQWRkcmVzcw== Index: branches/5.3.x/core/units/promo_blocks/promo_block_eh.php =================================================================== diff -u -N -r16519 -r16531 --- branches/5.3.x/core/units/promo_blocks/promo_block_eh.php (.../promo_block_eh.php) (revision 16519) +++ branches/5.3.x/core/units/promo_blocks/promo_block_eh.php (.../promo_block_eh.php) (revision 16531) @@ -1,6 +1,6 @@ getObject(); - $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'); + $object->SetError('ScheduleFromDate', 'wrong_date_interval'); } $object->setRequired('CategoryId', $object->GetDBField('LinkType') == PromoBlockType::INTERNAL); Index: branches/5.3.x/core/install/upgrades.sql =================================================================== diff -u -N -r16503 -r16531 --- branches/5.3.x/core/install/upgrades.sql (.../upgrades.sql) (revision 16503) +++ branches/5.3.x/core/install/upgrades.sql (.../upgrades.sql) (revision 16531) @@ -3049,3 +3049,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: branches/5.3.x/core/units/promo_blocks/promo_blocks_config.php =================================================================== diff -u -N -r15659 -r16531 --- branches/5.3.x/core/units/promo_blocks/promo_blocks_config.php (.../promo_blocks_config.php) (revision 15659) +++ branches/5.3.x/core/units/promo_blocks/promo_blocks_config.php (.../promo_blocks_config.php) (revision 16531) @@ -104,13 +104,13 @@ ), 'ScheduleFromDate' => Array ( 'type' => 'int', - 'formatter' => 'kDateFormatter', 'time_format' => '', 'input_time_format' => '', - 'error_msgs' => Array ('wrong_date_interval' => '!la_ToDateMustBeGreaterThanFromDate!'), + 'formatter' => 'kDateFormatter', 'picker_default' => 'midnight', + 'error_msgs' => array('wrong_date_interval' => '!la_error_WrongPromoBlockScheduleInterval!'), '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 +); Index: branches/5.3.x/core/admin_templates/promo_blocks/promo_block_edit.tpl =================================================================== diff -u -N -r15690 -r16531 --- branches/5.3.x/core/admin_templates/promo_blocks/promo_block_edit.tpl (.../promo_block_edit.tpl) (revision 15690) +++ branches/5.3.x/core/admin_templates/promo_blocks/promo_block_edit.tpl (.../promo_block_edit.tpl) (revision 16531) @@ -66,12 +66,6 @@ - - - - @@ -98,61 +92,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=""> - - - - + +