In that case, you can add the following to the API’s system messages
import datetime
import pytz
your_locale = pytz.timezone('Your locale goes here')
datetime = datetime.datetime.now(your_locale)
now_of_year = datetime.strftime("%Y")
now_of_month = datetime.strftime("%m")
now_of_day = datetime.strftime("%d")
now_of_time = datetime.strftime("%H:%M")
system_message_content = f"Today is the year {now_of_year}, month is {now_of_month}, and date is " \
f"{now_of_day}. " \
f"The current time is {now_of_time}. "
Alternatively, you can indicate the current date.
Current date is: {datetime goes here}
In ChatGPT, there may be some information or prompts about knowledge cutoffs that is not visible to the user, but you need to make it explicit if you want to use the API.
I hope this will be of some help to you.