Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Timezone testing on my website
Moderator: daj
-
DaveNZ
- Posts: 373
- Joined: Mon 07 Dec 2009 10:27 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 64-bit
- Location: Howick, Auckland, New Zealand
- Contact:
Timezone testing on my website
Hi all,
I need some visitors from different time zones to look at a page on my site. I've altered my time calculations for my graphs and I only know that it is correct for the local time zone. I suspect I need to add a timezone adjustment to my calculations but want to collect some data first to make sure I do it right.
Please copy and paste the data you see in the yellow table here.
For me, it currently shows
Theoretical start ... 18:40
Actual start ........ 18:40
Your GMT offset ..... GMT +12
Note this is just a test page, it will eventually disappear from the website.
Thanks in advance!
The page is <edit - url of test page removed>.
I need some visitors from different time zones to look at a page on my site. I've altered my time calculations for my graphs and I only know that it is correct for the local time zone. I suspect I need to add a timezone adjustment to my calculations but want to collect some data first to make sure I do it right.
Please copy and paste the data you see in the yellow table here.
For me, it currently shows
Theoretical start ... 18:40
Actual start ........ 18:40
Your GMT offset ..... GMT +12
Note this is just a test page, it will eventually disappear from the website.
Thanks in advance!
The page is <edit - url of test page removed>.
Last edited by DaveNZ on Tue 09 Jul 2013 8:33 am, edited 2 times in total.
- laulau
- Posts: 678
- Joined: Tue 13 Oct 2009 10:52 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Win 7
- Location: Meyenheim, Alsace, FR
- Contact:
Re: Timezone testing on my website
From France:
Theoretical start ... 19:45
Actual start ........ 9:45
Your GMT offset ..... GMT +2
Theoretical start ... 19:45
Actual start ........ 9:45
Your GMT offset ..... GMT +2
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Timezone testing on my website
UK, currently on daylight savings:
Theoretical start ... 20:00
Actual start ........ 9:0
Your GMT offset ..... GMT +1
Theoretical start ... 20:00
Actual start ........ 9:0
Your GMT offset ..... GMT +1
Steve
-
DaveNZ
- Posts: 373
- Joined: Mon 07 Dec 2009 10:27 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 64-bit
- Location: Howick, Auckland, New Zealand
- Contact:
Re: Timezone testing on my website
Oops, looks like I forgot to adjust minutes to always be 2 figures.steve wrote:UK, currently on daylight savings:
Theoretical start ... 20:00
Actual start ........ 9:0
Your GMT offset ..... GMT +1
Thanks Laurent & Steve. It looks like I need to do an (NZ offset - local offset) adjustment
-
water01
- Posts: 3670
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10/11 64bit Synology NAS
- Location: Burnham-on-Sea
- Contact:
Re: Timezone testing on my website
UK
Theoretical start ... 20:10
Actual start ........ 9:10
Your GMT offset ..... GMT +1
Theoretical start ... 20:10
Actual start ........ 9:10
Your GMT offset ..... GMT +1
-
weatherfrog80
- Posts: 70
- Joined: Tue 06 Mar 2012 7:50 pm
- Weather Station: WH 1080
- Operating System: Windows XP SP 3
- Location: Bremerhaven, NW Germany
- Contact:
Re: Timezone testing on my website
Germany,
I got the following:
Theoretical start ... 20:20
Actual start ........ 10:20
Your GMT offset ..... GMT +2
I got the following:
Theoretical start ... 20:20
Actual start ........ 10:20
Your GMT offset ..... GMT +2
-
Matt.j5b
- Posts: 512
- Joined: Mon 28 Nov 2011 2:13 am
- Weather Station: Davis VP2/ WLL with DFARS
- Operating System: RPi Raspbian (Buster)
- Location: Ferny Grove, Brisbane, Australia
- Contact:
Re: Timezone testing on my website
Brisbane, East Coast of Australia, (Australian Eastern Standard Time)
Theoretical start ... 21:10
Actual start ........ 19:10
Your GMT offset ..... GMT +10
Theoretical start ... 21:10
Actual start ........ 19:10
Your GMT offset ..... GMT +10
-
DaveNZ
- Posts: 373
- Joined: Mon 07 Dec 2009 10:27 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 64-bit
- Location: Howick, Auckland, New Zealand
- Contact:
Re: Timezone testing on my website
After literally pulling my hair out over this stuff... I reprogrammed it another way.
Was hard enough getting dates/times/DST done right in PHP, let alone getting in right in javascript across all timezones.
Please check the page again, it should be matching up now
http://howickweather.info/graphsTEST.php
Was hard enough getting dates/times/DST done right in PHP, let alone getting in right in javascript across all timezones.
Please check the page again, it should be matching up now
http://howickweather.info/graphsTEST.php
-
tobyspond
- Posts: 252
- Joined: Fri 24 Jun 2011 5:57 pm
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 10
- Location: Lamoine, Maine, USA
Re: Timezone testing on my website
Concord, Massachusetts, East Coast USA, eastern time zone (daylight savings time)
Theoretical start 23:45
Actual start 23:45
GMT offset GMT-4
Theoretical start 23:45
Actual start 23:45
GMT offset GMT-4
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Timezone testing on my website
Theoretical start ... 00:50
Actual start ........ 00:50
Your GMT offset ..... GMT +1
Actual start ........ 00:50
Your GMT offset ..... GMT +1
Steve
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Timezone testing on my website
If the page is generated by php why are you using JS to 'work' TimeZones ?
If you are using the 'date' plot of HighCharts just use php to set dates to unix / JS epoch and it will look the same to everyone.
php
Neat coding BTW 
If you are using the 'date' plot of HighCharts just use php to set dates to unix / JS epoch and it will look the same to everyone.
php
Code: Select all
......
date_default_timezone_set('Pacific/Auckland'); // DO NOT CHANGE
.... data grab and prepare loop
// generate unix timestamps $m = month, $x = date, $y = year but YOU want to also use hours, mins
$epoch = mktime(0, 0, 0, $m, $x, $y) *1000; // *1000 because of the difference between php and JS 'count'
// generate string for graph data
$t_data .= "[" .$epoch. "," .($temperatue *1). "],";
... end loop
......................Imagine, what you will KNOW tomorrow !
-
mikkimii
- Posts: 42
- Joined: Fri 23 Mar 2012 3:17 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 x64 Pro
- Location: Vilppula, Finland
Re: Timezone testing on my website
From Finland, EEST – Eastern European Summer Time
Theoretical start ... 03:45
Actual start ........ 03:45
Your GMT offset ..... GMT +3
Theoretical start ... 03:45
Actual start ........ 03:45
Your GMT offset ..... GMT +3
- gluepack
- Posts: 460
- Joined: Tue 22 Jan 2013 9:20 pm
- Weather Station: PCE-FWS 20
- Operating System: Win 7 Pro
- Location: Zlatina, Bulgaria
Re: Timezone testing on my website
From Bulgaria - EEST (GMT +3)
Theoretical start ... 05:25
Actual start ........ 05:25
Your GMT offset ..... GMT +3
Very nicely presented. How much?
@mikkimii Mika - your signature banner link fails (oh, you missed the : prior to the //)
Theoretical start ... 05:25
Actual start ........ 05:25
Your GMT offset ..... GMT +3
Very nicely presented. How much?
What do you mean?it will eventually disappear from the website
@mikkimii Mika - your signature banner link fails (oh, you missed the : prior to the //)
PWS links: Wunderground➤IVARNAPR3…CWOP/APRS➤E(W)2048…PWSWeather➤ZLATINABG…Awekas➤10631…Twitter➤@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
-
mikkimii
- Posts: 42
- Joined: Fri 23 Mar 2012 3:17 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 x64 Pro
- Location: Vilppula, Finland
Re: Timezone testing on my website
Thank you for noticing, now signature link works. I had two http:// 's in URLgluepack wrote:@mikkimii Mika - your signature banner link fails (oh, you missed the : prior to the //)
-
DaveNZ
- Posts: 373
- Joined: Mon 07 Dec 2009 10:27 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 64-bit
- Location: Howick, Auckland, New Zealand
- Contact:
Re: Timezone testing on my website
I wanted to handle cases of when DST starts and ends in New Zealand. I used to present my graphs using UTC times and display a tooltip based on the user's local timezone offset, but this results in a discontinuous graph when my data suddenly jumps from 2am to 3am (DST start) and from 3am back to 2am (DST end).beteljuice wrote:If the page is generated by php why are you using JS to 'work' TimeZones ?
If you are using the 'date' plot of HighCharts just use php to set dates to unix / JS epoch and it will look the same to everyone.
phpNeat coding BTWCode: Select all
...... date_default_timezone_set('Pacific/Auckland'); // DO NOT CHANGE .... data grab and prepare loop // generate unix timestamps $m = month, $x = date, $y = year but YOU want to also use hours, mins $epoch = mktime(0, 0, 0, $m, $x, $y) *1000; // *1000 because of the difference between php and JS 'count' // generate string for graph data $t_data .= "[" .$epoch. "," .($temperatue *1). "],"; ... end loop
Might seem very minor but I really wanted to handle these cases as continuous data.