PowerBuilder Foundation Class (PFC) Y2K 5.0.04\6.5.1 Fixes ========================================================== The Y2K patches are delivered as a complete set of PFC libraries (including extensions). If you are already using PFC you should replace only your main PFC libraries and not your extension libraries. For example: Version 5.0.04: Replace pfcapsrv.pbl, pfcdwsrv.pbl, pfcmain.pbl, pfcwnsrv.pbl Version 6.5.1: Replace pfcapsrv.pbl, pfcdwsrv.pbl, pfcmain.pbl, pfcwnsrv.pbl, pfcutil.pbl If an attempt to fix these Y2K issues has been made by overriding these PFC functions in your own customized extension layer, first compare the official fixes with your own changes. Remove the overriding functions in your customized extension layer only if they address the fixes included in this set of Y2K patches. For example: a Y2K issue is addressed by modifiying n_cst_datetime and overriding the function of_lastdayofmonth. After the patches are applied, pfc_n_cst_datetime::of_lastdayofmonth now includes these changes, therefore of_lastdayofmonth in n_cst_datetime should be removed from your customized extension layer. After applying the Y2K patches, it is advised to perform a Full Rebuild of the application. ----------------------------------------------------------- Object: pfc_n_cst_datetime DateTime Service CR169790 Method: of_lastdayofmonth Fix: Removed a loop which relied on an invalid date. Added an array containing the number of days in each month. Fix Release: 7.0GA, 6.5.1(y2kpatch), 5.0.04(y2kpatch) CR162134 Method: of_relativemonth Fix: Removed a loop which determined the last day in month. The loop was relying on the of_IsValid(date) function to find an invalid date. In PB 5.0.03+ a date variable can only contain a Null or a valid date. Fix Release: 7.0GA, 6.5.1(y2kpatch), 5.0.04(y2kpatch) CR188246 Method: of_relativeyear Fix: Removed a loop which determined the last day in month. The loop was relying on the of_IsValid(date) function to find an invalid date. In PB 5.0.03+ a date variable can only contain a Null or a valid date. Fix Release: 7.0GA, 6.5.1(y2kpatch), 5.0.04(y2kpatch) ========================================================= Object: pfc_u_calendar Drop Down Calendar CRs 162134 and 184373 Method: of_drawmonth Fix: Did not redraw date of 1/1/1900. Removed an invalid comparison to date(‘50/50/1900’)). The comparison is no longer needed. Post 5.0.03 PowerBuilder date type cannot contain an invalid date with an exception of a null value. Fix Release: 7.0GA, 6.5.1(y2kpatch), n/a for 5.0 CRs 162134 and 184373 Method: of_setdate Fix: Add code to always redraw for date matching 1/1/1900 to allow date display for January 1900. Previously the calendar did not redraw since the initial value of the previous date was also 1/1/1900. Fix Release: 7.0GA, 6.5.1(y2kpatch), n/a for 5.0 CRs 162134 and 184373 Method: of_reset Fix: If the date is invalid set the calendar date to today's date. Fix Release: 7.0GA, 6.5.1(y2kpatch), n/a for 5.0