dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #06274
[Bug 591090] Re: validation-rule -report (pdf files) with Vietnamese font error
This bug has just been fixed. Sorry that's my fault.
But there is a problem in formatting date. And here is my testing on
Tomcat for the method: format.parseDate( String date )
* INFO 13:24:25,472 Validating rules for group: 'TH - BIỂU 1' (RunValidationAction.java [http-8080-5])
input = 01-01-2010 ( this is start date )
pattern = dd-MM-yyyy
dateFormat = java.text.SimpleDateFormat@9586200
parsedDate in try = Fri Jan 01 00:00:00 ICT 2010
parsedDate in finally = Fri Jan 01 00:00:00 ICT 2010
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input = 30-04-2010 ( this is end date )
pattern = dd-MM-yyyy
dateFormat = java.text.SimpleDateFormat@9586200
parsedDate in try = Fri Apr 30 00:00:00 ICT 2010
parsedDate in finally = Fri Apr 30 00:00:00 ICT 2010
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* INFO 13:24:25,519 Initialising statement manager (StatementInterceptor.java [http-8080-5])
* INFO 13:24:25,612 Destroying statement manager (StatementInterceptor.java [http-8080-5])
- - - - - - When running for generating the PDF file - - - - - - -
input = 2010-06-08 ( this is the current day )
pattern = dd-MM-yyyy
dateFormat = java.text.SimpleDateFormat@9586200
parsedDate in try = Fri Dec 01 00:00:00 ICT 13
parsedDate in commonFormatting( parsedDate, pattern ).equals( input )
null ( final result )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** Changed in: dhis2
Status: New => Fix Committed
--
validation-rule -report (pdf files) with Vietnamese font error
https://bugs.launchpad.net/bugs/591090
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
Status in DHIS 2 - District Health Information Software: Fix Committed
Bug description:
DHIS2.0.4: when exporting .pdf file for validation-rule -report (Data Quality >> Validation Rule Analysis >> ... >> Generate PDF)
with Vietnamese font errors
But it works out for "Generate Workbook" .xls exported-files
References