B
Big Jim
Cheers Paul,
I understand the conversion but confused about where they are
performed. Considering I can only send longs between client and server,
the server has no timezone info about the client, the server could also
be in any timezone and it has to be stored in the DB as a date, are you
suggesting (for a "round trip"):
1.the user entry is converted to a long using d.getTime and sent to the
server
2.the server uses sdfGMTLots to convert to a date and stores this in
the DB
3.the server gets the date from the DB and converts to a long somehow
4.the client uses sdfLocalLots to convert the long and display the date
Step 3 I'm not sure about, if the date in the DB is GMT and the server
could be anywhere, how would it generate the correct long to be sent to
clients?
Cheers, Richard.
I understand the conversion but confused about where they are
performed. Considering I can only send longs between client and server,
the server has no timezone info about the client, the server could also
be in any timezone and it has to be stored in the DB as a date, are you
suggesting (for a "round trip"):
1.the user entry is converted to a long using d.getTime and sent to the
server
2.the server uses sdfGMTLots to convert to a date and stores this in
the DB
3.the server gets the date from the DB and converts to a long somehow
4.the client uses sdfLocalLots to convert the long and display the date
Step 3 I'm not sure about, if the date in the DB is GMT and the server
could be anywhere, how would it generate the correct long to be sent to
clients?
Cheers, Richard.