Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Commit

Permalink
Use 24h time as most server display in 24hr format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuhaib M Siddique committed Jul 24, 2013
1 parent 2449e3c commit 22fbd69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/events.js.coffee
Expand Up @@ -13,7 +13,7 @@ $ ->
setTimeout (() -> $('#updating_event_list').hide()), 2500

setPickers = ()->
$('.timepicker').timepicker({ 'step': 15, 'showDuration': true, 'timeFormat': 'g:ia', 'scrollDefaultNow': true })
$('.timepicker').timepicker({ 'step': 15, 'showDuration': true, 'timeFormat': 'G:i', 'scrollDefaultNow': true })
$('.datepicker').datepicker({ 'autoclose': true, 'dateFormat': 'd/m/yy', 'format': 'dd/mm/yyyy' })

runPermanentHooks = ()->
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/stashes.js.coffee
Expand Up @@ -2,7 +2,7 @@
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
$ ->
$('.timepicker').timepicker({ 'step': 15, 'showDuration': true, 'timeFormat': 'g:ia', 'scrollDefaultNow': true })
$('.timepicker').timepicker({ 'step': 15, 'showDuration': true, 'timeFormat': 'G:i', 'scrollDefaultNow': true })
$('.datepicker').datepicker({ 'autoclose': true, 'dateFormat': 'd/m/yy', 'format': 'dd/mm/yyyy' })
$('.create-custom-stash-working').hide()
$('.show-custom-stash-modal').click ->
Expand Down
2 changes: 1 addition & 1 deletion lib/assets/javascripts/datepair.js
Expand Up @@ -12,7 +12,7 @@ $(function() {

$('input.time_input').each(function() {
var $this = $(this);
var opts = { 'step': 15, 'showDuration': true, 'timeFormat': 'g:ia', 'scrollDefaultNow': true };
var opts = { 'step': 15, 'showDuration': true, 'timeFormat': 'G:i', 'scrollDefaultNow': true };

if ($this.hasClass('start') || $this.hasClass('end')) {
opts.onSelect = doDatepair;
Expand Down

0 comments on commit 22fbd69

Please sign in to comment.