Hi,
The little application I'm working on as part of my evaluation of SmartClient is a scheduling/calendaring thing. I want to be able to work with times of the day without tying the times to a particular date (so you can set up schedules for Tuesdays, or the last day of every month, or whatever).
I had started using java.sql.Time's on the server side, but of course these come back to the Javascript as full date/times on Jan 1st 1970 (and to make matters worse the time is actually wrong because the daylight-saving element has been clobbered due to Jan 1st being in the middle of winter!)
What would you recommend for implementing pure time data in a SmartClient app? Plain integers? Floats? I'd appreciate the advice of anyone who has already done this kind of thing.
The little application I'm working on as part of my evaluation of SmartClient is a scheduling/calendaring thing. I want to be able to work with times of the day without tying the times to a particular date (so you can set up schedules for Tuesdays, or the last day of every month, or whatever).
I had started using java.sql.Time's on the server side, but of course these come back to the Javascript as full date/times on Jan 1st 1970 (and to make matters worse the time is actually wrong because the daylight-saving element has been clobbered due to Jan 1st being in the middle of winter!)
What would you recommend for implementing pure time data in a SmartClient app? Plain integers? Floats? I'd appreciate the advice of anyone who has already done this kind of thing.
Comment