Make applet taking the server time?

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Make applet taking the server time?

  1. #1
    Join Date
    Jul 2005

    Make applet taking the server time?

    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
    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

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center