• Resolved Groovyx9

    (@groovyx9)


    093000 – 123000
    when it should display 09:30 – 12:30
    It used to work. What happened ?
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author room34

    (@room34)

    I’ve rewritten the function to format times because several users were having problems with incorrect times being displayed.

    If it’s showing this, it means I may not have accounted for the time format your site is using. What is the Time Format setting on your Settings > General page?

    Thread Starter Groovyx9

    (@groovyx9)

    France ??
    G \h i \m\i\n
    (I guess it’s Europe).
    Thanks

    Thread Starter Groovyx9

    (@groovyx9)

    BTW I sent you my email adress for an eventual pro version (not too sure I have the right to talk about this here) please keep me informed. Love your plugin.

    Plugin Author room34

    (@room34)

    Hmm… so for 1630, for instance, you’d want it to display as “16 h 30 min”, is that correct?

    I had accounted for several possible formats but not that one. I can add it in.

    Just a little background on this — it seems all of the PHP and WordPress time formatting functions like to work with a full Unix timestamp, and I run into problems with them making timezone calculations when they shouldn’t be. So yesterday in the latest version I added my own function to format times that just accepts a time string and doesn’t do any calculations; it just reformats the display. But I need to account for various possible formats, and there are a lot!

    I’ll get a new update rolled out today that supports more format options.

    Plugin Author room34

    (@room34)

    OK… version 5.2.5.1 will be available shortly.

    I made two changes to the time formatting function:

    1. I added support for various permutations of the French time formats (I took French in high school so I should have remembered this!)… all of these are now supported:

    G \h i \m\i\n
    G\h i\m\i\n
    G\hi\m\i\n
    G \h i \m
    G\h i\m
    G\hi\m
    H \h i \m\i\n
    H\h i\m\i\n
    H\hi\m\i\n
    H \h i \m
    H\h i\m
    H\hi\m

    2. I changed the default fallback for any cases where I haven’t handled a specific format. (Which, I hope, is not that likely, since I now support 35 different options.) In the last version it was His, which is why you were seeing “093000”. I changed it to H:i, so that will display as “09:30”.

    • This reply was modified 4 years, 10 months ago by room34.
    Thread Starter Groovyx9

    (@groovyx9)

    It works !!!! Merci beaucoup ! Extra cool plugin, I left a review ??
    Thanks for everything.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Suddenly 00 is added behind time (after a plugin update)’ is closed to new replies.