date/time format

gadehans - January 31, 2008 - 20:14
Project:Event with volunteer time slots
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

In the Event volunteer schedule the time-format doesn't follow the time-format of the system

#1

pwolanin - February 8, 2008 - 22:06
Status:active» postponed (maintainer needs more info)

Certainly possible. Where are you seeing this exactly? In the rendered node?

#2

lakyljuk - February 21, 2008 - 10:34

Confirmed, module isn't respecting site time format. I have time set up fo 24h format, but this module shows time slot in 12h format in rendered node. Can this be changed?

#3

pwolanin - February 21, 2008 - 16:57

hmm, I don't recall why, but seems like it's hardcoded in function _timeslots_signup_form($node, $admin).

e,g,:

    $form['timeslot'][$slot]['start_time'] = array(
      '#value' => format_date($data['start_time'], 'custom', 'g:i a', $node->start_offset),
    );

#4

lakyljuk - February 23, 2008 - 21:30

Thanks for a hint. I just changed "g:i a" (12hr time schema) to "G:i" (24hr time schema). I found three places, where this has to be changed. No problem,

 
 

Drupal is a registered trademark of Dries Buytaert.