[EN] To prevent a « leap bug » that may appear in February 2016

Cette note est disponible en Français ici.


For all FM Calendar users who have a version prior to 1.5.5. The version 1.5.5 has already correcting this bug.

To prevent a « leap bug » that may appear in February 2016, you must modify your FM Calendar. To do this, you must follow this procedure :

In script "fmpCall", search the action "Set Field" on the field "eventsEdit::startDate" (at line #36) to change formula to :

———————————start copy———————————
Set Field [eventsEdit::startDate; Let([
    _txt = $start ;
    _num = Evaluate ( _txt ) ;
    _correction =  GetAsNumber(Timestamp( Date(1;1;1970); Time(0;0;0) ));
    _num = _num + _correction ;
    _ts = GetAsTimestamp ( _num )
];
Date(
    Month ( _ts ) ;
    Day ( _ts ) ;
    Year ( _ts ) 
)
)]
———————————end copy———————————

In script "fmpCall", search the action "Set Field" on the field "eventsEdit::endDate" (at line #39) to change formula to :

———————————start copy———————————
Set Field [eventsEdit::endDate; Let([
    _txt = $end ;
    _num = Evaluate ( _txt ) ;
    _correction =  GetAsNumber(Timestamp( Date(1;1;1970); Time(0;0;0) ));
    _num = _num + _correction ;
    _ts = GetAsTimestamp ( _num )
];
Date(
    Month ( _ts ) ;
    Day ( _ts ) ;
    Year ( _ts ) 
)
)]
———————————end copy———————————