PC Review


Reply
Thread Tools Rate Thread

Display Different Time Zone

 
 
ComputerSnack
Guest
Posts: n/a
 
      25th Oct 2005
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

 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      25th Oct 2005
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.
==============================================

"ComputerSnack" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      26th Oct 2005
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
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au

Thomas A. Rowe wrote:
> 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.
> ==============================================
>
> "ComputerSnack" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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



 
Reply With Quote
 
Ronx
Guest
Posts: n/a
 
      26th Oct 2005
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)
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

"Trevor L." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> --
> Cheers,
> Trevor L.
> Website: http://tandcl.homemail.com.au
>
> Thomas A. Rowe wrote:
> > 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.
> > ==============================================
> >
> > "ComputerSnack" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> 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

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I determine and display my Time Zone? CJP at UBS Microsoft Excel Misc 1 12th Jan 2009 09:52 PM
Time Zone display Robert Swofford Microsoft Windows 2000 Developer 0 7th Apr 2004 05:24 PM
Re: Time Zone Display Alex Nichol Windows XP General 0 27th Feb 2004 04:07 PM
Re: Time Zone Display Gregg Cattanach Windows XP General 0 26th Feb 2004 09:29 PM
Time Zone Display Windows XP General 0 26th Feb 2004 09:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:27 PM.