Closed aaclage closed 1 year ago
Hi @tecchan1107,
Thanks for the updates.
Hi @aaclage ! Sorry, please give me more time to verify😣🙏
@tecchan1107 sure no problem :) take your time.
Enjoy the day :)
Hi, @aaclage ! Sorry for the delay.
I tried welcome-header-24hours.json
. Looking at the code, it probably shows "Good Morning" from 5 AM to 12 AM, but when I looked at it at 7:41 AM, it showed "Good night". I am sorry, but could you please confirm or fix this phenomenon?
The site locale is set to Japanese.
I haven't checked all the times yet, but other times the message seems to be right on.
@tecchan1107 i will give a look thanks
@tecchan1107 Strange made multiple validations and should work correctly, sample
"txtContent": "='04:23:54'>'05:00:00'" with true for night
and "txtContent": "='05:23:54'>'05:00:00'"
for morning. I can only think as cache issue from last access....
@aaclage Thanks for the confirmation! I will check again after tomorrow, about the same time!
@aaclage I tried clearing the cache, but it still shows Good Night. Perhaps, but I think that the time is not correctly determined when the time is in single digits. 10 AM to 12 AM, the Good Morning is displayed correctly.
@tecchan1107 ok i will review again. Can you test toLocaleTimeString(@now) before 10
The value of toLocaleTimeString(@now) is the following.
For reference, the indexOf value was displayed as the following.
@tecchan1107 Ok i belive that found the issue have 10 character and should be 7, the logic is '4:23:54' doesn't have '0' should include in the begining that the time validation works as expected 10 characters was for 12 hours but 7 is for 24 hours. 4:23:54 -> 04:23:54 '04:23:54'>'05:00:00'
@aaclage
Good Morning was displayed!!! Thanks for the fix🙏✨
What's in this Pull Request?
New Sample Welcome Form