   // Time
   display.setCursor(0,30);
   display.fontColor(GREEN,BLACK);
-  display.print(hour);
+  int hours = RTC.getHours();
+  if (hours > 12)
+{
+  hours = hours - 12;
+}
+display.print(hours);
   display.print(":");
   
   if (RTC.getMinutes() < 10) // if minutes under 10


DS1339 RTC = DS1339();

unsigned long lastReceivedTime=0;

unsigned long lastDisplayUpdate=0;
unsigned long displayUpdateInterval=1000;


unsigned long sleepTimer=0;
unsigned long sleepTimeout=5000;
int displayState=0;
int buttonReleased=1;

char notificationLine1[20]="Release 2.0.0";
char notificationLine2[20]="";

void setup(void) { // setup
  Wire.begin();
  display.begin();
  display.setFlip(1);
  display.setBrightness(3);
  RTC.start();
  display.fontColor(GREEN,BLACK);
  display.setFont(liberationSans_16ptFontInfo);
  display.setCursor(0,10);
  display.print("Hello");
  delay(2000);
  display.clearWindow(0,0,0,0);
}

void loop() {
  byte buttons = display.getButtons();
  if(buttonReleased && buttons){
  	if(displayState){
      notificationLine1[0]='\0';
      memcpy(notificationLine2,"  No notifications.",strlen("  No notifications."));
      displayNotifications();
  	}
    display.on();
    buttonReleased=0;
  }
  if(!buttonReleased && !(buttons&0x0F)){
    buttonReleased=1;
  }
  if(millis() > sleepTimer+sleepTimeout){
    if(displayState){
      displayState=0;
      display.off();
    }
  }
  unsigned char second;
  unsigned char minute;
  unsigned char hour;

        day = RTC.getDays();
        month = RTC.getMonths();        
        year = RTC.getYears();
  display.setFont(liberationSans_10ptFontInfo);  
  // Date      
  display.setCursor(0,10);
  display.fontColor(BLUE,BLACK);
