CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 date picker displays what date as today?? from user sys or the server date

Print topic Send  topic

Author Message
Navneet Kakkar
Posted: 04/03/2004, 8:40 AM

ASP + access

first what does the date picker take today as - date of the server or the
user's sys date.

i want to capture the time of login of a user and also the time zone.

any method to detect the loaction of user depening upon ip.
--
Thanks

luv

Navneet
aquananu@yahoo.com
9811153443


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 3/26/2004

srinivas

Posts: 54
Posted: 04/11/2004, 10:30 AM

The date picker uses JavaScript. So, it displays the date on user's system.

You can check the Visualware.coom for the tools and technologies that you can integrate for capturing the physical placing of the IP address.

-Srinivas
View profile  Send private message
marcwolf


Posts: 361
Posted: 04/13/2004, 7:41 PM

I have worked on a similar issue.

You can use a Javascript date function to get the GMT offset on the client machine. This can be placed into a hidden field for submission back to the server.
i.e.

function ServerTime(){  
 	var d, tz;  
   	d = new Date();  
   	tz = d.getTimezoneOffset();  
    return tz  
}  
  

Where the result is the number of minutes offset on the Clients machine

One the Server side you can run the same JScript routine within Global.asa to get the Server offset to GMT.

Then just write some simple function to add or substact the offsets as required.

We have used this very successfully to save all date formats into GMT time in the database, and then present the date to the User at the User's locale, or to take the Server's time for a date/time stamp and convert it to GMT

Hope this helps.

Dave

_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.