Copied to clipboard

Flag this post as spam?

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


  • Matt Brown 62 posts 174 karma points
    Feb 28, 2017 @ 17:49
    Matt Brown
    0

    Time picker not selecting PM times

    When we set a time in the time picker on the event page, the time sets in 12hr time but the AM or PM is not being set so the events all are set to AM and never PM.

    If I select 6 and click PM, the time comes in as AM.

    Any ideas?

    How can I explain this better so someone can help?

  • Matt Brown 62 posts 174 karma points
    Mar 01, 2017 @ 15:49
    Matt Brown
    0

    This is killing me guys I can't get any events that start in the afternoon. Only mornings. No matter what I do there is not any way to set a time for 1pm or 2pm etc.

    We deployed and I missed this. It is a deal breaker and I really need help.

  • Matt Brown 62 posts 174 karma points
    Mar 01, 2017 @ 21:18
    Matt Brown
    100

    OK solved. The formats in the editor.controller.js were not doing what they were supposed to and that caused the problem.

    I had:

    $("#StartDateWrapper").datetimepicker({
        pickSeconds: false,
        format: 'YYYY-MM-DD HH:mm',
        pick12HourFormat: true,
        sideBySide: true,
        icons: {
            time: "icon-time",
            date: "icon-calendar",
            up: "icon-chevron-up",
            down: "icon-chevron-down"
        }
    });
    

    I had set this so I could get 01:00,02:00...23:00,24:00

    I still think this should work according to moment.js, but It is not important enough to troubleshoot so I went back to the original:

    $("#StartDateWrapper").datetimepicker({
        pickSeconds: false,
        format: 'YYYY-MM-DD H:mm',
        pick12HourFormat: true,
        sideBySide: true,
        icons: {
            time: "icon-time",
            date: "icon-calendar",
            up: "icon-chevron-up",
            down: "icon-chevron-down"
        }
    });
    

    Now everything works right.

Please Sign in or register to post replies

Write your reply to:

Draft