The Trial Balance displays the end of period balances, in particular:
For the Balance Sheet accounts, it displays the total balances.
For the Profit and Loss accounts, it displays the balances since the start of the financial year.
For the Retained Earnings account, it excludes Profit and Loss movements during the financial year. The current year earnings is displayed for information purposes, which forms the sum of the Profit and Loss accounts.

To ensure the closing balances in the Trial Balance are correct, you need to set your financial year end date. When you and other users open your Trial Balance, if the financial year end date is not set, you will see a warning message at the bottom of the screen. Users with permission to manage financial statements will also see a button you can click to set the date.

When you set the date, the warning message no longer displays. You can then edit the date or add more dates via the Settings button, as outlined below.