Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
It looks like the submitted by area is controlled in the template.php file as:
function plasma_preprocess_node(&$variables) {
$variables['submitted'] = t('By !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));
if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) {
$variables['classes_array'][] = 'node-full';
}
}
I was wondering if anyone could show me how to modify this to show the time in a 12 hour format vs. the current 24 hour format?
Thank you, in advance, for any assistance.
Comments
Comment #1
ravis CreditAttribution: ravis commentedyou can control / change date and time format from:
Administration » Configuration » Regional and language
(admin/config/regional/date-time)
Comment #2
play4quarters CreditAttribution: play4quarters commentedThank you.
I'm sure I'm probably missing something.
I'm do have the time-zone set up the way I'd like for the site, but I'm not seeing where to apply a default format setting for the date/time of the site?
Any advice, is greatly appreciated, and thank you for the response.
Comment #3
ravis CreditAttribution: ravis commentedI guess Medium or Long time format is used to display in posts submit details.
Try changing format of these two.
Comment #4
play4quarters CreditAttribution: play4quarters commentedBeautiful!
Sorry it just wasn't clicking for me, but that was the clue that helped me out.
Just changed the format for those and I'm rockin'.
Thanks so much!