Display Different Time Zone

C

ComputerSnack

Our web server is in Eastern Time Zone (Kentucky), and we are in in the
Pacific Time Zone (California). I'm using the date & time web component
to display the date & time the page was last updated, however I would
like it to show the time in Pacific Standard Time (which is different
than the web server). Is this possible? If so, do you have any
suggestions on how to do it?

Thanks,

Kevin
 
T

Thomas A. Rowe

Not possible when using the FP component, requires a JavaScript Data & Time Script or the use of
Server-Side Scripting.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Trevor L.

I may be naive, but if you know what the time difference is, why not just
adjust the time retrieved by this amount.

Sure it needs JS, but tain't difficult, is it?

This script writes time
<script type="text/javascript">
var d = new Date()
document.write(d.getHours() + ':' + d.getMinutes() +':' + d.getSeconds())
</script>
EG for me it wrote 13:46:24

So this
<script type="text/javascript">
var d = new Date()
document.write(d.getHours() - 2 + ':' + d.getMinutes() +':' +
d.getSeconds())
</script>
writes 11:46:24

You could even add PST to what is writen if you want
<script type="text/javascript">
var d = new Date()
document.write(d.getHours() - 2 + ':' + d.getMinutes() +':' + d.getSeconds()
+ " PST")
</script>
11:46:24 PST
 
R

Ronx

JavaScript will give the local time on the viewers PC - which time zone is
the viewer in??

Cannot be done with the Time and Date web component. However, since the
date/time this compnent displays is fixed when the page is updated and
saved, I am not sure what a few hours difference will make, unless the page
is updated several times a day.

The Date and Time web component can also include the Time Zone, as in
26/10/2005 09:09 +0100 (+0100 indicates 1 hour ahead of GMT)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top