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

oliveira.vitor3

Members
  • Posts

    2
  • Joined

  • Last visited

oliveira.vitor3's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  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...