How to change Date & Time format?

Home Forums Calendar Products Events Calendar PRO How to change Date & Time format?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #110178
    winterf
    Participant

    Hi all,
    I am using German WP 3.8.1, Theme Graphene and your great event calendar PRO plugin.
    That’s the link to the website’s calender:
    http://bvv-leistungsstuetzpunkt-straubing.de/events/woche/
    Unfortunately in the weekly view English date and time format is shown.
    In my wordpress installation everything is configured for the German version. In your plugin settings I can’t find anything to change it.
    How can I change that into German format?
    Thanks in advance for your support.
    Best regards,
    Frank

    #110195
    snorton
    Participant
    #110566
    Kelly
    Participant

    Hi, winterf. Great question! 🙂 (And, snorton, thanks for your help!)

    Unfortunately, beyond the tweaking offered in the FAQ that snorton shared, pretty much all the date information in the row and column labels (as well as the ordinal suffix) on the Week View is hardcoded. As it stands, there’s not really anything that you can do to fix it.

    We are fully aware that this is not a great solution for our international users, and we are actively looking into making the parts of TEC like the Week View more international friendly. We appreciate your patience while we work through this.

     

    #110719
    winterf
    Participant

    Hi Sayyadina, hi snorton!
    First of all, thanks a lot for your fast repsonse. I had already a look at snorton’s link. But that’s what I actually was expecting … “The plugin will use the date/time format you’ve specific in the general WordPress settings (Settings > General). That’s the easiest way to set the format.”
    However, because I don’t like … and to be honest, I am not really able to do so, … changing code.
    So, it would be great, if you can change it as Sayyadina said in one of the next releases.
    Thanks & best regards,
    Frank

    #111109
    Kelly
    Participant

    Hi, Frank! It turns out I may have a solution for you, after all! 🙂

    It turns out that there are filters set up to allow you to tweak this through your theme’s functions.php file. Please check out the following snippet: http://pastebin.com/AmdCGTcv

    You’ll probably want to make a child theme if you haven’t set one up already to ensure you can update your theme later without losing your customization.

    In addition, to make the “h” for “uhr” lowercase, you’ll want to create a custom CSS stylesheet to prevent the uppercase transform going into effect. First, create a new directory in your child theme’s folder at tribe-events/pro/. Then, create a file in it called tribe-events-pro.css. Paste this inside it:

    .tribe-week-grid-hours div {
    text-transform: none;
    }

    For complete details on setting up the CSS override, check out the relevant section of our Themer’s Guide. That should be all that you need! 🙂

    #118811
    Kelly
    Participant

    Hi, winterf. As it’s been a couple of weeks now, I’m going to close this thread. Please start a new topic if you’d like to pursue this further.

    Thanks for being a TEC user! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to change Date & Time format?’ is closed to new replies.