
Originally Posted by
Tha
Your int is wrong if it just shows your computer time.
Code:
Calendar c = Calendar.getInstance();
c.setTimeInMillis(milli);
this.Hour = c.get(Calendar.HOUR);
this.Minute = c.get(Calendar.MINUTE);
}
public void Serialize(Response packet)
{
packet.appendInt32(this.Hour);
packet.appendInt32(this.Minute);
packet.appendString(this.username);
packet.appendString(this.message);
}
millis is Calendar.getInstance().getTimeInMillis();
It's all working fine. It's the client - not me. I didn't ask for your help.