I wanted to compare the last time my specific player balance was updated using this script:
{
PlayerBalance playerBalance = await GetEconomyBalance(//provided CurrencyDefinition);
return playerBalance.Modified.Date;
}
private async Task<PlayerBalance> GetEconomyBalance(CurrencyDefinition currentData)
{
return await currentData.GetPlayerBalanceAsync();
}
Initially, I believed that the Modified
property contained the information I was looking for. However, I noticed a discrepancy between the output from my script (e.g., 12/2/2023 8:20:30 PM
) and the last update timestamp shown on the cloud dashboard (e.g., Dec 3, 2023 4:20 AM GMT+8
).
To address this, I am considering using cloud save functionality to store the date for comparison. However, I want to ensure that I am not overlooking any details, such as the impact of GMT, that might explain the differences. I have explored various resources but couldn’t find a more comprehensive explanation. Any insights or guidance on this matter would be greatly appreciated.