Communicate the client's timezone to the server during the authentication

process and keep that information around in case the server ever wants to know.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4356 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-09-07 01:56:41 +00:00
parent 70854349af
commit 7379cf09db
3 changed files with 217 additions and 193 deletions
@@ -21,6 +21,8 @@
package com.threerings.presents.net;
import java.util.TimeZone;
public class AuthRequest extends UpstreamMessage
{
/**
@@ -39,6 +41,7 @@ public class AuthRequest extends UpstreamMessage
{
_creds = creds;
_version = version;
_zone = TimeZone.getDefault().getID();
}
/**
@@ -58,6 +61,14 @@ public class AuthRequest extends UpstreamMessage
return _version;
}
/**
* Returns the timezone in which this client is operating.
*/
public TimeZone getTimeZone ()
{
return TimeZone.getTimeZone(_zone);
}
/**
* Generates a string representation of this instance.
*/
@@ -72,4 +83,7 @@ public class AuthRequest extends UpstreamMessage
/** The version information associated with the client code. */
protected String _version;
/** The timezone in which this client is operating. */
protected String _zone;
}