PCF8583 library not working ?

Hello,

I downloaded this one :GitHub - edebill/PCF8583: Arduino library for interfacing with the PCF8583 real-time clock chip

I tried to run the exemple but :

Arduino : 1.6.5 (Mac OS X), TD: 1.33, Carte : "Arduino/Genuino Uno"

/Users/xxx/Documents/Arduino/libraries/PCF8583/PCF8583.cpp: In function 'byte {anonymous}::DayOfWeek(const PCF8583&)':
/Users/xxx/Documents/Arduino/libraries/PCF8583/PCF8583.cpp:39:38: error: variable 'MonthTable' must be const in order to be put into read-only section by means of 'attribute((progmem))'
static char PROGMEM MonthTable[24] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5, -1, 2, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5};

What mistake make I ?

Thanks

Hint:

variable 'MonthTable' must be const

Thanks!

Like that?

  byte DayOfWeek(const PCF8583 &now) {
    static const PROGMEM MonthTable[24] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5, -1, 2, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5};

we get:

PCF8583/PCF8583.cpp:39:26: error: 'MonthTable' does not name a type

Can not be static, is FLASH memory.
Type "char" missing.

const char PROGMEM MonthTable[24] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5, -1, 2, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5};

Perfect! Thanks!