Summary: | [PATCH] HSSFDateUtil.getExcelDate() is one hour off when DST changes | ||
---|---|---|---|
Product: | POI | Reporter: | Hack Kampbjorn <hak> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kosherjava |
Priority: | P3 | ||
Version: | 3.0-dev | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Fix for one hour off on DST change days in getExcelDate |
Description
Hack Kampbjorn
2004-03-10 16:45:34 UTC
Created attachment 10747 [details]
Fix for one hour off on DST change days in getExcelDate
The same happens with the code below: HSSFCellStyle cellStyle = wb.createCellStyle(); cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm")); cell = row.createCell((short)1); cell.setCellValue(new Date()); //use test date here. It will be an hour off cell.setCellStyle(cellStyle); I found this in 2.5 final Patch applied to rel-2-branch. Thanks. |