Skip to content

Commit

Permalink
fix send as string function in auto_email #58
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jan 29, 2016
1 parent d78f96e commit 1dd0aaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions application/libraries/Auto_email.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,15 @@ private function sendAtString($scheduleTime) {
//computation in the future / past
$scheduleTime = $scheduleTime - $this->timeOffset;

log_message('info', 'Date ' . print_r($scheduleTime, true));


$returnValue = date('Y-', $scheduleTime).date('m-', $scheduleTime)
.(date('d', $scheduleTime)).' '.(date('H', $scheduleTime)-1).':'
.(date('i', $scheduleTime)).date(':s', $scheduleTime);
.(date('d', $scheduleTime)).' '.(date('H', $scheduleTime)).':'
.(date('i', $scheduleTime)).':'.(date('s', $scheduleTime));

log_message('info', 'Date ' . print_r($returnValue, true));


return $returnValue;
}
Expand Down
2 changes: 2 additions & 0 deletions assets/js/input.time.logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ function validateAccuracyMeasure(){
if(result.success == true)
{

$('button.close').click();

$("#sync-button").hide();
$('button[name="restartCountdown"]').hide();
$('.sync-success').show();
Expand Down

0 comments on commit 1dd0aaa

Please sign in to comment.