Hi, I recently facing some issue with the expression below:
TOTALHOURS([TimeStamp Out]-[TimeStamp In])
Below as the sample data:
TimeStamp Out : 20/10/2021 19:04
TimeStamp In: 20/10/2021 07:20
Result I got from the expression: 454,091.07
The returnd total hours should be 11 ++ hours?
What have been set wrong with my expression?
Hi @aijac1314
Your expression looks correct to me.
Can you share a screenshot of your table structure ?
Internally, AppSheet represents dates in US format: MM/DD/YYYY; you appear to be using non-US format: DD/MM/YYYY. That could be a problem. Make sure your spreadsheet columnโs cell format is Date time, that your spreadsheetโs locale is set properly, and that the appโs table locale is set correctly.
Hi Steve, thanks you for the reply.
FYI, I have check the setting, below as the locale setting:
This problem (wrong calculation of the total hour) is randomly happened. Sometime value returned correctly, but sometime not.
I wonder, does the clientโs device also required to set the language as EN UK?
Yes, the clientโs deviceโs locale will affect how dates are displayed to the user, and how dates input by the user are interpreted.
I just confirmed with userโs device, their locale also set as EN UK.
What went wrong ya.
Iโm afraid I donโt know what the problem is. I encourage you to engage Supportโsomeone there can look at your app configuration to try to find the problem.
User | Count |
---|---|
43 | |
29 | |
24 | |
21 | |
13 |