Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bramwaas

    (@bramwaas)

    Hi Carolyn,
    thank you for your comments.
    At the moment the format of the times is hard-coded ‘G:i’.

    It is not very difficult for me to make it configurable. So I will do that in the next update. I hope to deploy that in a week or two.

    If you can’t wait and you are not afraid to change a little bit in the code you can change the text ‘G:i’ three times in the format you want for example ‘g:i a’ in the file
    … /wp-content/plugins/simple-google-icalendar-widget/simple-google-icalendar-widget.php
    on your system
    in the following lines:

                    if ($e->startisdate === false)	{
                        echo wp_date( 'G:i ', $e->start);
                    }
    

    and

                    if ($e->startisdate === false && date('z', $e->start) === date('z', $e->end))	{
                        echo '<span class="time">', wp_date( 'G:i', $e->start ),
                        '</span> - <span class="time">', wp_date( 'G:i', $e->end ), '</span> ' ;
                    } else {
                        echo '';
    

    Regards Bram

    • This reply was modified 3 years, 7 months ago by bramwaas.
    Plugin Author bramwaas

    (@bramwaas)

    Hi Carolyn,

    Deployed new version 1.3.0.

    In this version you can configure your time formats.
    You can replace the defaults “G:i” and ” – G:i” by “g:i a” and ” – g:i a” to make it in line with your website.

    I think with this change your question is resolved.

    Regards Bram.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display time in 12 hr clock instead of military?’ is closed to new replies.