Skip to content
Browse files

BUGFIX Fixed embargo date setting, was capping time at the hour due t…

…o wrong date format presets
  • Loading branch information...
1 parent 5d19a7b commit fa2cff68b9c317db9ccb4750fd09fc19fbb31990 @chillu chillu committed Dec 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/WorkflowRequest.php
View
4 code/WorkflowRequest.php
@@ -384,7 +384,7 @@ function EmbargoField() {
$datetimeField->getDateField()->setConfig('showcalendar', true);
$datetimeField->getTimeField()->setConfig('showdropdown', true);
$datetimeField->getDateField()->setConfig('dateformat', 'dd/MM/YYYY');
- $datetimeField->getTimeField()->setConfig('timeformat', 'HH');
+ $datetimeField->getTimeField()->setConfig('timeformat', 'HH:mm');
return $datetimeField;
}
@@ -393,7 +393,7 @@ function ExpiryField() {
$datetimeField->getDateField()->setConfig('showcalendar', true);
$datetimeField->getTimeField()->setConfig('showdropdown', true);
$datetimeField->getDateField()->setConfig('dateformat', 'dd/MM/YYYY');
- $datetimeField->getTimeField()->setConfig('timeformat', 'h:m a');
+ $datetimeField->getTimeField()->setConfig('timeformat', 'HH:mm');
return $datetimeField;
}

0 comments on commit fa2cff6

Please sign in to comment.
Something went wrong with that request. Please try again.