Commit 8fc96c26 authored by m.stenta's avatar m.stenta
Browse files

Issue #2624980: Expose log timestamp hours+minutes+seconds

parent 63969ad1
...@@ -37,7 +37,7 @@ function log_view(Log $log) { ...@@ -37,7 +37,7 @@ function log_view(Log $log) {
// Add the log's timestamp. // Add the log's timestamp.
if (!empty($log->timestamp)) { if (!empty($log->timestamp)) {
$date = date('M j Y', $log->timestamp); $date = format_date($log->timestamp);
$output['log'][$log->id]['timestamp'] = array( $output['log'][$log->id]['timestamp'] = array(
'#markup' => '<p><strong>Date:</strong> ' . $date . '</p>', '#markup' => '<p><strong>Date:</strong> ' . $date . '</p>',
'#weight' => -99, '#weight' => -99,
...@@ -125,7 +125,7 @@ function log_form(array $form, array &$form_state, Log $log) { ...@@ -125,7 +125,7 @@ function log_form(array $form, array &$form_state, Log $log) {
$form['timestamp'] = array( $form['timestamp'] = array(
'#type' => 'date_select', '#type' => 'date_select',
'#title' => t('Date'), '#title' => t('Date'),
'#date_format' => 'M j Y', '#date_format' => 'M j Y H:i:s',
'#date_type' => DATE_FORMAT_UNIX, '#date_type' => DATE_FORMAT_UNIX,
'#date_year_range' => '-10:+3', '#date_year_range' => '-10:+3',
'#default_value' => $timestamp_default, '#default_value' => $timestamp_default,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment