The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> display a day and time in localized timezone, in text, a fixed day/time
post Dec 31 2016, 07:33 AM
Post #1

Group: Members
Posts: 6
Joined: 31-December 16
Member No.: 24,986

I produce radio shows, that are streamed on multiple outlets at various times. I'd like to list of schedule of when people can tune in. These are not podcasts but live feeds of streaming radio stations.

For example, my show runs 5 times on the weekend.
Saturday Noon CT on station A
Sunday 7am MT on station B
Sunday Noon MT on station C
Sunday 9pm ET on Station D
Sunday 9pm MT on Station E

It's the same times week to week, so I don't want a date, just a day and time.

I'd like the user to see these fixed days/times in their local timezone

All of the streaming stations (so far) participate in Daylight saving time (US/Northern hemisphere) but that won't likely be the case for much longer. It would be nice if the displays of this schedule took DST of the source and the local listener into account.

So if the viewer is in Eastern Time, it would read:
Saturday 1pm ET on station A
Sunday 9am ET on station B
Sunday 2pm ET on station C
Sunday 9pm ET on Station D
Sunday 11pm ET on Station E

and a viewer in Pacific time would read:
Saturday 10am PT on station A
Sunday 6am PT on station B
Sunday 11am PT on station C
Sunday 6pm PT on Station D
Sunday 8pm PT on Station E

this will just display in a cell in an html table.

Thanks, in advance, for your help.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
bluffwood   display a day and time in localized timezone   Dec 31 2016, 07:33 AM
Christian J   With a server-side script (e.g. PHP) you can get t...   Dec 31 2016, 08:04 AM
bluffwood   With a server-side script (e.g. PHP) you can get ...   Dec 31 2016, 09:18 PM
pandy   Will JavaScript suffice? If I've understood t...   Jan 1 2017, 11:54 AM
bluffwood   I'm thinking it looks elegant, and might well ...   Jan 2 2017, 03:17 PM
pandy   Yeah, that can be done. But do you want them to cl...   Jan 2 2017, 05:20 PM
pandy   Well, I tried to do something according to your fi...   Jan 2 2017, 09:36 PM
pandy   Oh #%&! If course there's something I ...   Jan 2 2017, 10:06 PM
bluffwood   That could probably be written more elegantly to ...   Jan 4 2017, 12:33 PM
pandy   if by 5 times, you mean 5 stations? That's no...   Jan 4 2017, 01:19 PM
bluffwood   Yeah, that can be done. But do you want them to c...   Jan 4 2017, 08:57 AM
pandy   So does what I posted above work for you?   Jan 4 2017, 09:51 AM
pandy   This was quite fun and something that I could have...   Jan 4 2017, 11:45 AM
bluffwood   that's a lot of lines. Now walk me thru it li...   Jan 4 2017, 12:19 PM
pandy   that's a lot of lines. Now walk me thru it l...   Jan 4 2017, 01:33 PM
Christian J   Christian, could you check if you see any fault w...   Jan 4 2017, 04:01 PM
pandy   Yes, that's the hole point. I convert UTC time...   Jan 4 2017, 04:45 PM
pandy   Oops! The array with all the months isn't ...   Jan 4 2017, 08:37 PM
pandy   So did it work for you? :unsure:   Jan 7 2017, 06:14 PM

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 6th December 2019 - 12:10 AM