[PATCH] Reports in User's Time Zone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openobject-jasper-reports |
New
|
Undecided
|
Unassigned |
Bug Description
In 6.1 OpenERP changed datetimes to be stored in UTC timezone. I am in America/Belize timezone (UTC -6). All my jasper_reports now print in UTC.
Adding this patch will allow dates to be converted to the user's timezone:
--- jasper_
+++ jasper_
@@ -142,6 +142,10 @@
if ( index != -1 )
+ // Use the user's time zone
+ if ( parameters.
+ parameters.put( "REPORT_TIME_ZONE", java.util.
+
// Declare it outside the parameters loop because we'll use it when we will create the data source.
Translator translator = null;