SAP Knowledge Base Article - Public

2661351 - Rule to check event date with user locale date

Symptom

How to create rules to check or compare with user's locale date?

Environment

 Employee Central: Business Rules

Cause

Today() funtion returns server time instead of user's locale date.

Resolution

Product team is planning to introduce more funtions which are simplified and accept further parameters and which can return multiple date based on user locale, system etc. The availability of these is still tentative and no fix dates are publised. *SAP support colleagues can refer to internal memo.*

Meanwhile, as a workaround, we can use the function similar to below:

timezone offset.JPG

  • The above example uses function getLocalDateOfDateTime and is for scenario where the employees are using Indian time zone (UTC+5.5 hours).
  • This will check if the entered date in date field and current date as per Indian timezone are same, it will not check or work based on server time.

Keywords

today(), local date, effective date, timezone offset, , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , How To

Product

SAP SuccessFactors HCM Core all versions