Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismael 65 posts 337 karma points
    Jul 01, 2014 @ 00:17
    Ismael
    0

    UI not displaying the selected time value

    Hi,

    I'm using umbraco 7.1.4, I've setup my date picker with the a date format of "DD/MM/YYYY" and I've selected "Show Dropdowns", "Time Picker", "Time increment = 15", "Time Picker 12hr", and "Initialize with current date"

    If I select a date and time, save+publish, then refresh the browser (or navigate to another node and back again) and select the a date range again, the date value is correct but the time value display "12 00 AM"

    Cheers

    Ismael.

  • Dan Diplo 1470 posts 5676 karma points MVP 3x c-trib
    Jul 01, 2014 @ 21:29
    Dan Diplo
    101

    I think this is because you have specified a date format, but that doesn't include a time format, so it is defaulting to 12:00am.

    So try changing the Date Format to 'DD/MM/YYYY hh:mm a'

    The format strings are the same as used by Moment.js - so see http://momentjs.com/docs/#/displaying/format/

    If that doens't work, let me know.

    Dan

  • Ismael 65 posts 337 karma points
    Jul 02, 2014 @ 00:43
    Ismael
    0

    Yup that fixed it. Thanks!

    On a completly different subject, I think it would be neat to have an "All Day" option, so you can check whether or not to ignore the end date (as it defaults to the next day and althought it has a time of 12 00 AM, a user might not notice if it's actually a two day event - I genreally use the 12 00 AM value to check whether or not the user has set a time)

Please Sign in or register to post replies

Write your reply to:

Draft