Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
If you want to display dateCreated and dateModified based on user's timezone, you will need to use bean shell formatter may use Bean Shell Formatter on the date column.
Use this bean shell Java code for in the formatter.
Code Block | ||||
---|---|---|---|---|
| ||||
import java.text.SimpleDateFormat; import org.joget.commons.util.TimeZoneUtil; import java.util.Date; import org.joget.apps.app.service.AppUtil; String pattern = "yyyy-MM-dd HH:mm:ss.S"; SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern); Date date = simpleDateFormat.parse(value); value = TimeZoneUtil.convertToTimeZone(date, null, AppUtil.getAppDateFormat()); return value; |