hi everyone,

I found a small bug in this method.  When the hour is 12 the "shown
hour" is 0.  below is a small fix for it.  I am sorry for not sending a
diff... I haven't taken the time to learn how to do it.  So anyway here
is the fix:

 nice_now += " " +
                  now.get(java.util.Calendar.DAY_OF_MONTH) + " " +
                  now.get(java.util.Calendar.YEAR) + " ";

      int hour =  now.get(java.util.Calendar.HOUR);
      if (hour == 0)
   hour = 12;

      nice_now += hour + ":" ;



Oh and by the way I don't just sit and watch the clock :)

Thanks,
Chris Heinemann



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to