Game Schedules
[resolved] Cannot add game time (3 posts)

  1. platzh1rsch
    Posted 3 years ago #

    Hey Mark,

    I have problems to add a time to my games.
    I've seen that the format should be "hh:mm am" so I entered "02:00 pm" as a time, but it doesn't seem to work..

    I have to add: I changed the timezone to "Europe/Zurich" and the output format for the time I set to $mstw_gs_time_format = "H:i";

    However, in my shortcode schedule table it displays the following:

    for "02:00 pm" -> "22:00"
    for "2:00 pm" -> "22:00"
    for "02:00 am" -> "10:00"
    for "2:00 am" -> "10:00"
    for "2:00" -> "10:00"
    for "02:00" -> "10:00"
    for "15:00" -> "22:00"

    So I guess somethings wrong with the date saving / converting.


  2. platzh1rsch
    Posted 3 years ago #

    Just resolved it myself, aso you mentioned in the code the timezone cannot be changed atm. My mistake :)
    Set it back and all the times were correct!

  3. Mark O'Donnell
    Plugin Author

    Posted 3 years ago #

    Hi platzh1rsch,
    Glad you fixed the problem. The timezone can be changed, but you need to change the code in about 4 places. I'd just wait for the next release (this month) where I've done a lot of work to clean up the timezone issues.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic