|
|
 |
Re: FN-FORUM grabbing date
date posted 16th December 2001 22:33
Getting the server date in ASP would probably be the best one to go for as
that is likely to be the only constant in the scenario - getting the date
from the client is going to be full of inaccuracies.
If you get it from the server then you only need to compare it with the
server and if the server is in a different time zone, you can always adjust
it as it's written.
Dave
----- Original Message -----
From: "Mark Anderson" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Sunday, December 16, 2001 9:10 PM
Subject: RE: FN-FORUM grabbing date
> Mike,
> My original thoughts were asp (that being my background) but as Iain
didn't
> want to trust the 'filler-inners' which I assumed are also server side I
> thought the most appropriate method would be client side. Personally I
would
> find it very easy to do it server side.... BUT is that actually what he
> wants?
>
>
> Mark
>
> -----Original Message-----
> From: [EMAIL REMOVED]
> [EMAIL REMOVED] Behalf Of Mike Ridyard
> Sent: 16 December 2001 19:57
> To: [EMAIL REMOVED]
> Subject: RE: FN-FORUM grabbing date
>
>
> At 16:18 16/12/2001 +0000, you wrote:
> >Iain,
> >Basically you need to have a client side script that captures the date
and
> >then puts it in the hidden field, and then when the form is submitted
dump
> >the value into your database.
>
> *cough*
>
> This relies on the client, having a) javascript enabled, and b) the
correct
> system time.
>
> I wouldn't touch it with a baaaaaaaaaaarge-poooooooooooooole and a very
> long one at that.
>
> Iain has already stated that he is using asp, so why not just add the
> server time to all transactions, either in code using date() or now() or
> using the databases own (mysql) timestamp field, a null value in that
(i.e.
> don't enter a value) will place servertime in iirc yyyymmddhhmmss format
in
> the timestamp field - which can be inspected at a later date.
>
> regards,
>
> Mike
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 5000 freelancers
>
> Freelancers and Freelance Jobs:
> http://www.freelancers.net
>
> Forum FAQs:
> http://freelancers.netrickery.com
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 5000 freelancers
>
> Freelancers and Freelance Jobs:
> http://www.freelancers.net
>
> Forum FAQs:
> http://freelancers.netrickery.com
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
|
 |
|