Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.47 KB

DeprecatedCurrentDate.md

File metadata and controls

46 lines (30 loc) · 1.47 KB

Using of the deprecated method "CurrentDate" (DeprecatedCurrentDate)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL Major Yes 5 standard
deprecated
unpredictable

Description

The "CurrentDate" function has been deprecated. It is recommended to use the "CurrentSessionDate" function.

Examples

Incorrect:

OperationDate = CurrentDate();

Correct:

OperationDate = CurrentSessionDate();

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:DeprecatedCurrentDate-off
// BSLLS:DeprecatedCurrentDate-on

Parameter for config

"DeprecatedCurrentDate": false