<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is weekday and yearday of local time function in UIFlow2 bugged?]]></title><description><![CDATA[<p dir="auto">Hi, I am using a CoreS3 with UIFlow2. It appears to me that the local time function is bugged with its calculation of weekday and yearday.</p>
<p dir="auto">Below is what stated in the UIFlow2 programming guide about the function.<br />
<img src="/assets/uploads/files/1737848888572-guide.png" alt="guide.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Below is my code UIFlow2, just to display UTC time and local time of several different timezones.<br />
<img src="/assets/uploads/files/1737848954170-code.png" alt="code.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Below is the output on my CoreS3 screen.<br />
<img src="/assets/uploads/files/1737849013600-output-resized.jpg" alt="output.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">It appears that UTC function displays both weekday and yearday correctly. With Jan 25th being a Saturday, it shows 5 (Saturday) and 25 for weekday and yearday respectively, as what can be expected according to the programming guide.</p>
<p dir="auto">But local time function appears to be bugged:</p>
<ul>
<li>
<p dir="auto">For GMT0, the date is also Jan 25th (Saturday), but it displays 6 (Sunday) and 24 for weekday and yearday respectively.</p>
</li>
<li>
<p dir="auto">For GMT-12, the date is Jan 26th (Sunday), but it displays 0 (Monday) and 25 for weekday and yearday respectively.</p>
</li>
</ul>
<p dir="auto">Is it indeed a bug, or do I just misunderstand the local time function?</p>
]]></description><link>https://community.m5stack.com/topic/7239/is-weekday-and-yearday-of-local-time-function-in-uiflow2-bugged</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 11:34:00 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7239.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jan 2025 00:01:05 GMT</pubDate><ttl>60</ttl></channel></rss>