Hi, i'm currently looking into enabling uses to configure local timezone in case they're travelling abroad.
I tried the abovementioned call and it seems to work, but i have some issues.
1. From what i can see from the smartclient docs, this is *only* supported for datetime fields? What about time fields, is there any way to leverage this functionality for that type of field?
2. i have some places where i have a custom cellformatter on the datetimefield, for example:
The problem is that the Date value that comes in the value Object is the 'regular' date. Is there any way to have a custom formatter like this but make it work with a custom timezone?
Help appreciated.
I tried the abovementioned call and it seems to work, but i have some issues.
1. From what i can see from the smartclient docs, this is *only* supported for datetime fields? What about time fields, is there any way to leverage this functionality for that type of field?
2. i have some places where i have a custom cellformatter on the datetimefield, for example:
Code:
public class WPOutTimeFormatter implements CellFormatter {
@Override
public String format(Object value, ListGridRecord record, int i, int i1) {
if (value != null) {
GWT.log("the date i got in is " + value);
return DateUtils.lengthWithPlusDates(record.getAttributeAsDate(CSConstants.FIELD_INTIME), (Date) value);
}
return "";
}
Help appreciated.
Comment