Community Documentation

Troubleshooting

Last updated December 4, 2012. Created by emilyf on July 30, 2012.
Edited by stefanwray, kreynen. Log in to edit this page.

Troubleshooting Reservations API

Reservations are in 24 hour format and I want 12 hour format

If you install the Reservations API module before configuring your date/time settings in Drupal, it will default to making reservations in 24 hour time. To fix this, do the following:

  1. Navigate to Configuration > Reservations > Reservations API settings.
  2. Expand the 'Advanced Settings' section.
  3. Uncheck 'Lock Fields'.
  4. Save the configuration.
  5. Navigate to Configuration > Date and Time.
  6. Under types, make sure your formats are using 12 hour time.
  7. Navigate to Structure > Content Types > Reservation > Manage Fields.
  8. Choose 'Edit' for the field_reservation_date field.
  9. Expand the 'Show More settings and values' section.
  10. Under 'Date Options' choose the 12-hour format that you want.
  11. Save the configuration.
  12. Navigate to Configuration > Reservations > Reservations API settings.
  13. Expand the 'Advanced Settings' section.
  14. Check 'Lock Fields'.
  15. Save the configuration.

Page status

About this page

Drupal version
Drupal 7.x
Audience
Programmers, Site administrators, Site builders
Level
Intermediate, Advanced

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.