New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for American Time Format (AM/PM). #152

Closed
bbruman opened this Issue May 9, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@bbruman
Copy link

bbruman commented May 9, 2016

This was marked settled a while back:
#27

But only the date format was made changeable, not the time format.

Is there anyway this can be added, or does anyone know how to properly modify existing code to support AM/PM time format?

@bbruman

This comment has been minimized.

Copy link
Author

bbruman commented May 9, 2016

I figured out how to do this manually by changing instances of H:i to g:i a in code

@alextselegidis

This comment has been minimized.

Copy link
Owner

alextselegidis commented May 15, 2016

I will add this feature in v1.2 because other users have also requested it.

@alextselegidis alextselegidis added this to the v1.2.0 milestone May 15, 2016

@alextselegidis alextselegidis self-assigned this May 15, 2016

@alextselegidis alextselegidis modified the milestones: v1.3.0, v1.2.0 Jul 22, 2016

@alextselegidis alextselegidis changed the title American Time Format (AM/PM) Add support for American Time Format (AM/PM). Jan 2, 2018

@AurelienC

This comment has been minimized.

Copy link
Contributor

AurelienC commented Mar 19, 2018

Hello,

Is it possible to choose 12h or 24h format ?

@alextselegidis

This comment has been minimized.

Copy link
Owner

alextselegidis commented Mar 29, 2018

@AurelienC This is going to be a feature of 1.3.1 (currently under development).

This new release will enable users to switch between the regular and military format.

Stay tuned for future updates.

  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Contact me in person!
@ejtipi

This comment has been minimized.

Copy link

ejtipi commented Apr 9, 2018

What should i change to force 24h format? g:i:s in code appears only in system/helpers/date_helper.php but changing this does not bring any changes.

@AurelienC

This comment has been minimized.

Copy link
Contributor

AurelienC commented Apr 9, 2018

You could change it in easyappointments/src/assets/js/frontend_book_api.js

toString('h:mm tt')

81 | '<span class="available-hour">' + Date.parse(availableHour).toString('h:mm tt') + '</span><br/>');
-- | --
82 | });
83 |  
84 | if (FrontendBook.manageMode) {
… |  
89 | GlobalVariables.appointmentData.start_datetime,
90 | 'yyyy-MM-dd HH:mm:ss').toString('h:mm tt');
91 | }).addClass('selected-hour');
@alextselegidis

This comment has been minimized.

Copy link
Owner

alextselegidis commented Apr 9, 2018

@ejtipi There are many places that include the time format so there is unfortunately no direct way to do this.

The upcoming v1.3.1 will provide a setting so that users can switch between regular and military time :)

  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Contact me in person!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment