You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation states that gmtime is As in the C standard library, but it is actually different in at least one aspect: in c it is int tm_wday; /* day of the week, range 0 - sunday to 6 - saturday */, in luatz it is within 1 - sunday to 7 - saturday, it is clearly doing +1 in the code.
I think it is a good idea to mention the difference in the documentation, as fixing it will introduce a breaking change.
The text was updated successfully, but these errors were encountered:
a table with the following fields: year, month (1–12), day (1–31), hour (0–23), min (0–59), sec (0–61), wday (weekday, 1–7, Sunday is 1), yday (day of the year, 1–366)
Documentation states that
gmtime
isAs in the C standard library
, but it is actually different in at least one aspect: in c it isint tm_wday; /* day of the week, range 0 - sunday to 6 - saturday */
, in luatz it is within1 - sunday to 7 - saturday
, it is clearly doing +1 in the code.I think it is a good idea to mention the difference in the documentation, as fixing it will introduce a breaking change.
The text was updated successfully, but these errors were encountered: