private static String fixWindowsFormat(String format) {
    return format.replace('g', 'G').replace("dddd", "EEEE").replace("ddd", "E").replace("tt", "a").replace("t", "a");
  }
private static String fixWindowsFormat(String format)