Title: Time Zone problem
Last modified: August 21, 2016

---

# Time Zone problem

 *  Resolved [weepingtiger](https://wordpress.org/support/users/weepingtiger/)
 * (@weepingtiger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/time-zone-problem/)
 * Hello,
 * I am having a problem with the plugin displaying the correct match start time
   for my timezone (GMT).
 * As an example, the first match kicks off at 17:00 Brazil time. Once BST kicks
   in, that will be 20:00 UK Local Time, but in the Predictions Page, the time is
   shown as 14:00. No matter what I do in WordPress, this time doesn’t change. By
   setting the ‘Convert kickoff times to local timezone. If unchecked kickoff times
   are displayed as match local time’ tickbox, it just changes the format of the
   time, but the time is the same.
 * I am running on localhost on a Mac at the moment, if that makes a difference.
 * Here’s a screencast of what’s happening. [http://vimeo.com/acvm/review/87252704/59af5c07aa](http://vimeo.com/acvm/review/87252704/59af5c07aa).
   The password is jimbo.
 * I’d appreciate any help you can provide.
 * Thanks, Jim
 * [https://wordpress.org/plugins/world-cup-predictor/](https://wordpress.org/plugins/world-cup-predictor/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/time-zone-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/time-zone-problem/page/2/?output_format=md)

 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [12 years ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662767)
 * Hi, Jim. Do you include the code bellow in your page?
 *     ```
       <div class="tzcContainer">
   
       <p id="tzLocal">Match times are currently set to match local time, please click here to convert to your time zone.</p>
   
       <p id="tzClient" style="display:none">Match times are currently set to <strong>your timezone</strong>, please click here to revert to local time.</p>
   
       </div>
       ```
   
 *  Thread Starter [weepingtiger](https://wordpress.org/support/users/weepingtiger/)
 * (@weepingtiger)
 * [12 years ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662768)
 * OK, cool that works. Any way of making the local time the default?
 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [12 years ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662769)
 * When you access the Overview menu and uncheck the option “Convert to kickoff 
   Local teams timezone. If unchecked kickoff times are displayed match the local
   time”, the matches continue to appear on Brazilian time?
 *  Thread Starter [weepingtiger](https://wordpress.org/support/users/weepingtiger/)
 * (@weepingtiger)
 * [12 years ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662770)
 * Doesn’t work like that for me. When it’s unchecked, the toggle above doesn’t 
   do anything. When it’s checked, it toggles between Brazil time and my local UK
   time, but Brazil time is the default. Also, I’ve noticed that the time on the
   Results page is always Brazil time.
 * So I’m thinking about manually updating all the match start times to just be 
   the UK time. The problem is that the plugin seems to adjust the time in the database
   and displays a different time in Predictions and Results. Can I disable that 
   adjustment?
 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [12 years ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662772)
 * You can try this:
 * 1) Go to your Plugins >> Editor in your WordPress Panel and select the World 
   Cup Predictor.
 * 2) Look for file world-cup-predictor/js/wcp.js.
 * 3) In this file, search for:
 *     ```
       $('.wcup_kickoff_time').each(function() {
       		wcup_match_time(this);
       		/*
       		var utc = $(this).attr('utc');  // YYYYMMDDHHMM format
       		if (utc == undefined) return;
       		var date_only = $(this).is('.date_only');
   
       		$(this).html(sast_time(utc, wcp_offset-120, date_only));  // Note: toLocale...() adds the TZ offset,
       															      // so subtract the offset between UTC and SAST (120 mins)*/
       	});
       ```
   
 * 4) Replace this code for:
 *     ```
       $('.wcup_kickoff_time').each(function() {
       		var utc = $(this).attr('utc');
       		if (utc == undefined) return;
       		var date_only = $(this).is('.date_only');
       		$(this).html(wcup_localtime(utc, 0, date_only));
       	});
       ```
   
 * 5) Now open your prediction form e please confirm if now the kickoff times are
   in your time zone.
 *  Thread Starter [weepingtiger](https://wordpress.org/support/users/weepingtiger/)
 * (@weepingtiger)
 * [12 years ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662773)
 * Wonderful! Thank you for your help.
 *  [silas.aragozo](https://wordpress.org/support/users/silasaragozo/)
 * (@silasaragozo)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662779)
 * Good night.
    I am Brazilian, my time zone is UTC -3, WHAT did you suggested, 
   more does not work! My site is hosted by the European server. I can solve the
   problem, are not 3hrs difference! follow the link from my website. [](http://bolao.bl.ee/?page_id=6)
 * Thanks in advance!
 *  [silas.aragozo](https://wordpress.org/support/users/silasaragozo/)
 * (@silasaragozo)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662780)
 * Boa Noite.
    Sou Brasileiro, Meu fuso Horário é UTC -3, fiz oque você sugeriu,
   mais não funciona! meu site esta hospedado em servidor Europeu. não consigo resolver
   o problema, são 3hrs de diferença! segue o link do meu site. [http://bolao.bl.ee/?page_id=6](http://bolao.bl.ee/?page_id=6)
 * Desde já agradeço!
 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662781)
 * Olá, Silas. O fato do site estar hospedado em um servidor Europeu não deveria
   interferir em nada, pois os jogos são exibidos no horário do local da partida(
   ou seja, horário brasileiro). Ao executar o procedimento citado acima, os jogos
   passam a ser exibidos no horário do navegador do usuário.
 * Quanto ao link que você mencionou, nele a partida em questão é Bayern vs. Borussia
   e não um dos jogos da Copa do Mundo. Nesse caso, para compreender o cenário, 
   eu precisaria saber:
 * 1) Que fuso horário você assinalou para a cidade de Munique?
    2) Que horário 
   você lançou para a partida quando cadastrou o jogo?
 *  [silas.aragozo](https://wordpress.org/support/users/silasaragozo/)
 * (@silasaragozo)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662782)
 * PARTIDAS
    [http://bolao.bl.ee/wp-content/uploads/2014/04/partidas.jpg](http://bolao.bl.ee/wp-content/uploads/2014/04/partidas.jpg)
   LOCAIS [http://bolao.bl.ee/wp-content/uploads/2014/04/locais.jpg](http://bolao.bl.ee/wp-content/uploads/2014/04/locais.jpg)
   HORAS [http://bolao.bl.ee/wp-content/uploads/2014/04/horas.jpg](http://bolao.bl.ee/wp-content/uploads/2014/04/horas.jpg)
 * COMO PODE NOTAR SÃO 3HRS DE DIFERENÇA!
 * DESDE JÁ AGRADEÇO A SUA ATENÇÃO
 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662783)
 * Olá, Silas. Os horários são baseados no horário UTC 0, que corresponde a 3 horas
   a mais do que no Brasil mesmo. Ou seja, se um jogo for começar às 17 horas, ela
   deve ser cadastrada no painel como tendo início às 20 horas.
 * Quanto ao local da partida, não deve ser lançado como Diferença em UTC 0 e sim
   como -3 para exibição do horário correto na tabela de palpites.
 *  [silas.aragozo](https://wordpress.org/support/users/silasaragozo/)
 * (@silasaragozo)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662784)
 * Muito Obrigado.
    Funcionou perfeitamente!
 * **Outra Duvida!**
    Teria como deixar “Pontos pela diferença correta de gols” 
   uma ponto não cumulativo?
 * Desde já agradeço! A Donate para seu plugin já esta a caminho!
 * Abraços
 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662785)
 * A diferença de gols precisa ser cumulativa, pois ela compõe a pontuação total
   obtida pelo usuário ao cravar um palpite. Eu por exemplo costumo configurar o
   plugin assim:
 * Points for correct score: 16
    Points for guessing a draw: 10 Wrong score but 
   predicted a win: 10 Points for correct number of goals: 2 Points for correct 
   goal difference: 5
 * Ou seja, quando o usuário crava o placar ele ganha 25 pontos (16 + 5 + 2 + 2).
   Ou se tiver apostado no empate e errar o número de gols, ele ganha 15 pontos (
   10 + 5). Uma pontuação semelhante a que é utilizada no Bolão Vip por exemplo (
   exceto pelo Placar Vencedor valer o mesmo que o Placar Perdedor).
 *  [AntaresMHD](https://wordpress.org/support/users/antaresmhd/)
 * (@antaresmhd)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662788)
 * Hey there. I’m still getting problems with the timezone. My local time in General
   Settings is “Caracas” (and it shows the correct time in the backend), but I noticed
   the script is still assuming I’m in UTC. I checked wcp.js to add the code you
   mentioned above
 *     ```
       $('.wcup_kickoff_time').each(function() {
       		var utc = $(this).attr('utc');
       		if (utc == undefined) return;
       		var date_only = $(this).is('.date_only');
       		$(this).html(wcup_localtime(utc, 0, date_only));
       	});
       ```
   
 * But I realized it was already there, which I guess it makes sense considering
   I’m using the latest version of the plugin (1.8). How do I fix this?
 *  Plugin Author [landoweb](https://wordpress.org/support/users/landoweb/)
 * (@landoweb)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/time-zone-problem/#post-4662789)
 * The time displayed not based on your General Settings but according to the time
   of your web browser (Chrome, Firefox, Internet Explorer, etc …).
 * If the time is not displayed correctly, it is likely that there is some javascript
   error, generated by the theme you are using. What is the link of your website?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/time-zone-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/time-zone-problem/page/2/?output_format=md)

The topic ‘Time Zone problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/world-cup-predictor.svg)
 * [World Cup Predictor](https://wordpress.org/plugins/world-cup-predictor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/world-cup-predictor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/world-cup-predictor/)
 * [Active Topics](https://wordpress.org/support/plugin/world-cup-predictor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/world-cup-predictor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/world-cup-predictor/reviews/)

## Tags

 * [brazil](https://wordpress.org/support/topic-tag/brazil/)
 * [timezone](https://wordpress.org/support/topic-tag/timezone/)

 * 17 replies
 * 4 participants
 * Last reply from: [landoweb](https://wordpress.org/support/users/landoweb/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/time-zone-problem/page/2/#post-4662792)
 * Status: resolved