Skip to content
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

Added support for a timeSeparator option #226

Open
wants to merge 17 commits into
base: gh-pages
Choose a base branch
from

Commits on May 6, 2014

  1. Added support for a timeSeparator option

    Looks like is working, can change ':' with dot '.'. For me is useful to integrate with java locales
    At line 766 don't know syntax to include separator dynamically in RegEx however there are only two separators in all java locales: ':' and '.'. Next step could be similar work for AM/PM symbol (eg: Arabic م Greek μμ) and (harder perhaps) AM/PM before or after time, in Chinese for example is before 下午9:21
    eleumik committed May 6, 2014
    Configuration menu
    Copy the full SHA
    085024c View commit details
    Browse the repository at this point in the history

Commits on May 8, 2014

  1. merged jdewit#222 AM / PM designators

    with some changes for variable length... eg: Czech [dop., odp.]
    eleumik committed May 8, 2014
    Configuration menu
    Copy the full SHA
    37ed869 View commit details
    Browse the repository at this point in the history
  2. fix for jdewit#222

    "When the time is greater than 11 you will notice that the meridian is ALWAYS AM when it should be PM." - Also if is true that if when use meridian there should be not an input hour > 12 is handy that is automatically understood and converted, in my opinion better than setting to 12 whatever hour > 12 is configured
    eleumik committed May 8, 2014
    Configuration menu
    Copy the full SHA
    6aacb3e View commit details
    Browse the repository at this point in the history
  3. fixed issue with 00:00 / 24:00

    When setting hour to zero or 24 the time was incorrect.  was setting hour to 23 when >=24 but should be zero. Now printing 25 controls with time from 0 to 24 gives correct results for all, in 24h mode, in 12h is still wrong: for 0 prints 01 AM (like for 1 and 24)
    eleumik committed May 8, 2014
    Configuration menu
    Copy the full SHA
    496031e View commit details
    Browse the repository at this point in the history
  4. fix for 00:00 / 24:00 in 12h mode

    Should be ok, 12 AM for both 0 and 24, with a little help from wiki.. http://en.wikipedia.org/wiki/12-hour_clock
    eleumik committed May 8, 2014
    Configuration menu
    Copy the full SHA
    4aa7015 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2014

  1. Update bootstrap-timepicker.js

    added configuration from data attributes with priority on code (code can change or remove them, so may re-obtain control), also a fix for 12 AM / PM (not zero) and a note for orientation (cannot reproduce yet)
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    887b5b9 View commit details
    Browse the repository at this point in the history
  2. fixed AM / PM problem for arabic

    Missed the regexp, now updated to match designator and not 'p', thought also that removing both ':' and '.' is ok.
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    c158912 View commit details
    Browse the repository at this point in the history
  3. Added support for two digits hour

    this should fix jdewit#219 jdewit#209 jdewit#208 jdewit#203, jdewit#209 has tests not yet included here
    
    JSBIN http://jsbin.com/xahux/3
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    7a5a84a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d8093cb View commit details
    Browse the repository at this point in the history
  5. unified event raising

    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    2325b26 View commit details
    Browse the repository at this point in the history
  6. Added ISO 8601 time in event

    When the widget is localized is handy to read the ISO 8601 value [hh:mm:ss] http://en.wikipedia.org/wiki/ISO_8601#Times
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    462296e View commit details
    Browse the repository at this point in the history
  7. Support return value from JQuery plugin methods

    Noticed that calling getTime did not return the time but jquery object, plugin has still some magic for me but found this http://stackoverflow.com/a/17792070/1536382 and chose to return first item only
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    b11835c View commit details
    Browse the repository at this point in the history
  8. removed my code for data-attributes

    didn't realize it was already there.. left some since have to update examples because names are different..they act for now as sort of preferred option, eg: data-am wins on 'standard-name' data-am-designator
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    d5f37b7 View commit details
    Browse the repository at this point in the history
  9. Added AM boolean / undefined

    to know if am, only when showMeridian==true
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    415d3b7 View commit details
    Browse the repository at this point in the history
  10. Added meridianSeparator and submitMode

    **MeridianSeparator** is to support '.' for Albanian locale (sq, sq_AL).
    
    **SubmitMode** determines the value actually submitted with the form and has 3 values: 
        
        'default' (as before, untouched, same as display value)
        'iso' (ISO8601, always with seconds)
        'iso-auto' (ISO8601, with seconds only if displayed)
    eleumik committed May 9, 2014
    Configuration menu
    Copy the full SHA
    06fec59 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2014

  1. added suffix property, orientation fix

    suffix is used only for Thai locale with value " น.", if is not present java DateFormat wont' parse the time (if has no seconds)
    
    merged also orientation
    eleumik committed Sep 11, 2014
    Configuration menu
    Copy the full SHA
    afe63ed View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2015

  1. Configuration menu
    Copy the full SHA
    d21b578 View commit details
    Browse the repository at this point in the history