DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    2

    Make applet taking the server time?

    Hi,
    I made an applet that is actually a clock. It measures the time in different time zones by adding or substracting from the time it gets from my computer(winXP with Apache 2). The problem is that when someone else uses it, the applet already takes the current time from his computer, so the measurements it makes are not true. Is there a way to always make it take the time from the server machine(my machine) when it's opened from another computer?

  2. #2
    Join Date
    Oct 2004
    Posts
    311
    the easiest way is to supply it with the local time on the webserver via an applet property in the HTML code.
    You can then use that time as a base to calculate the difference between the local time on the users computer and the timeon your server....

Similar Threads

  1. Time Out VB/SQL Server
    By mayowa in forum VB Classic
    Replies: 0
    Last Post: 07-31-2002, 02:19 PM
  2. Replies: 0
    Last Post: 01-16-2002, 10:46 AM
  3. Replies: 0
    Last Post: 06-15-2001, 05:50 AM
  4. Replies: 7
    Last Post: 09-15-2000, 08:44 AM
  5. Replies: 0
    Last Post: 08-14-2000, 10:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links