• Resolved thewanderer7

    (@thewanderer7)


    Dear Antoine,

    I’m trying to setup properly the time settings but I’m not yet able to hide the matches already started… Can you help me?

    e.g.
    Wordpress Settings
    Timezone => Rome

    Matches => all put with the Rome Timezone Settings

    Match time setting => Use UTC time

    Is it correct? Obviously not, because it always fail with the deadline… Can you help with an example?

    Italian Translation: I started to translate it but nobody is approving my translation… Can you help with this?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • ciao thewanderer, sei italiano immagino… ??

    i settaggi per l’ora sono corretti. quale deadline intendevi impostare? io per impostare 15 minuti prima dell’inizio delle partite ho dovuto mettere 8100 come valore.
    per la traduzione, se non l’hai già fatta, puoi utilizzare la mia se vuoi. ti mando in pvt i file.

    https://calcinaccio.it/

    • This reply was modified 7 years, 4 months ago by psike64.
    • This reply was modified 7 years, 4 months ago by psike64.
    Thread Starter thewanderer7

    (@thewanderer7)

    Ciao!

    Grazie della risposta. Volevo impostare 60 secondi prima dell’inizio ma non riesco a farlo funzionare. La traduzione l’ho mandata in approvazione ma ho visto che non ci sono editor per l’edizione italiana. Volentieri provo la tua. Ho visto anche il tuo sito… Complimenti!

    beh, diciamo che non essendo registrati vedi ben poco, però è un lavoro che mi ha appassionato e sta funzionando bene devo dire. Registrati, scegliendo la LEGA ALLIEVI, se vuoi cosi’ magari ti fai un giro.

    A naso, credo che per ottenere 1 ora, devi utilizzare 10800 come valore (15 minuti = 900 quindi 8100+(900*3)

    Fai un tentativo. Tutto è da ricontrollare comunque con l’introduzione imminente dell’ora legale!
    Per la traduzione, ho tradotto non tutto, giusto quello che poteva servirmi, ma se mi dai una email te la invio volentieri. E’ un personalizzata forse in alcuni punti, in base alle mie esigenze, ma credo che possa andare bene anche per le tue che tratti immagino il campionato italiano.

    Thread Starter thewanderer7

    (@thewanderer7)

    Ti ho scritto alla tua email info del tuo sito. Non so come mandare msg in pvt qui

    Thread Starter thewanderer7

    (@thewanderer7)

    Hi Antoine,

    testing the locking date, it doesn’t work, it seems that the lock is not triggered.
    This is what I can read on the Timezone Debug Info:

    Match: (101) Milan – Juventus
    Match date (database, should be UTC): 2017-10-26 17:30:00
    Match date (local): 2017-10-26 17:30
    Match timestamp (database, should be UTC): 1509039000
    Match is locked: false
    Match was/will be locked at time (local): 2017-10-26 17:30
    WordPress timezone offset: 0
    WordPress timezone string:
    WordPress current date (local): 2017-10-26 14:34:54
    WordPress current timestamp (local): 1509028494
    WordPress current date (UTC): 2017-10-26 14:34:54
    WordPress current timestamp (UTC): 1509028494
    Plugin prediction stop method matches: 0
    Plugin dynamic stop threshold (in seconds) for matches: 0
    Plugin prediction stop date for matches:
    Plugin prediction stop method questions: 0
    Plugin match time display setting: 1
    PHP current date and time (UTC): 2017-10-26 14:34
    PHP current timestamp (UTC, time()): 1509028494
    PHP current timestamp (UTC, date->format(“U”)): 1509028494
    PHP default timezone setting: UTC
    MySQL current date and time (UTC): 2017-10-26 14:34:54
    MySQL current timestamp (UTC): 1509028494
    MySQL current date and time (local): 2017-10-26 16:34:54
    MySQL global timezone setting: SYSTEM
    MySQL session timezone setting: SYSTEM

    Thread Starter thewanderer7

    (@thewanderer7)

    I modified in ‘true’ the string

    // set this to true if you want the plugin to also filter the user predictions page
    if ( ! defined( ‘ONLY_OPEN_MATCHES_ON_ALL_PAGES’ ) ) define( ‘ONLY_OPEN_MATCHES_ON_ALL_PAGES’, true );

    But it is still viewable in the main page, even if the match is started

    Plugin Author AntoineH

    (@antoineh)

    Hi thewanderer7,

    That’s a lot of questions in one thread ??
    I’ll try to go through them one by one. For future questions that are not related, I suggest opening a new thread so I can keep track of the status more easy.

    I’m trying to setup properly the time settings but I’m not yet able to hide the matches already started… Can you help me?

    e.g.
    Wordpress Settings
    Timezone => Rome

    Matches => all put with the Rome Timezone Settings

    Match time setting => Use UTC time

    Is it correct? Obviously not, because it always fail with the deadline… Can you help with an example?

    No, this is not correct. As you already figured out yourself.

    If you set the WordPress timezone to Rome and the match settings to use UTC time, then you’ll have to enter the matches in the admin in UTC times. In the first admin screen for the matches you can always check the times in both local and UTC time.

    p.s. The above settings are the recommended settings. So, place your WP in your local timezone and enter the matches in the database in UTC. That way the exported match schedule could – in theory – be used by everyone around the world without having to recalculate the times to their local time.

    But if I look at your debug info, then that doesn’t reflect the settings you mentioned in your first post.

    WordPress timezone offset: 0
    WordPress timezone string:
    WordPress current date (local): 2017-10-26 14:34:54
    WordPress current date (UTC): 2017-10-26 14:34:54

    This tells me that your timezone setting in WP is UTC+0 or GMT time.

    For instance, I am in the same timezone as you (Amsterdam) and my output is:

    WordPress timezone offset: 2
    WordPress timezone string: Europe/Amsterdam
    WordPress current date (local): 2017-10-26 21:47:40
    WordPress current date (UTC): 2017-10-26 19:47:40

    See the difference between my local and UTC output? UTC time is 2 hours before the local time, which is correct because my timezone setting of Amsterdam (offset = 2) means UTC+2 (add 2 hours to the UTC time).

    Italian Translation: I started to translate it but nobody is approving my translation… Can you help with this?

    This is also still kinda new to me. As far as I know, you have to ask an existing Italian language editor to approve your translations or become one yourself. I proposed you as a translation editor for the plugin (see this post). And if this is approved, then you can approve your own translations. Please note that the level of translations needs to reach 95% before a language pack will be automatically created.
    If you need more info about the translation system, then I suggest you get in touch with someone from the Italian polyglots team.

    Thread Starter thewanderer7

    (@thewanderer7)

    Thanks for the clarification, now it works fine.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to set properly Time + Italian Translation’ is closed to new replies.