Jump to content
We've recently updated our Privacy Statement, available here ×

oliveira.vitor3

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by oliveira.vitor3

  1. Hi, In my case I changed the locale properties file Like: Jaspersoftjasperreports-server-cp-7.1.0apache-tomcatwebappsjasperserverWEB-INFbundlesjasperserver_config_pt_BR.properties (As I am in Brazil) I changed the same settings you showed.
  2. To convert miliseconds for Hours, you have two options: Use SQL to convert.Add Library to your Jasperserver or your Java ApplicationIn my case I've create a simple Java Lib and add to my Tomcat. Check the example of code public class Util { public String milisecondsToHours(int miliseconds) { int seconds = ( miliseconds / 1000 ) % 60; int minutes = ( miliseconds / 60000 ) % 60; // 60000 = 60 * 1000 int hours = miliseconds / 3600000; // 3600000 = 60 * 60 * 1000 return String.format( "%02d:%02d:%02d", hours, minutes,seconds ); }}[/code]Note: Just remember, Java has x86 and x64, and you have to compile correct architecture of your application
×
×
  • Create New...