ix os.date("*t") to return hour in 24 hour format (fixes issue #45)
This commit is contained in:
@@ -977,8 +977,9 @@ Files are no longer hosted at LuaForge.
|
|||||||
<li>Fix return value for table.remove() and table.insert() (fixes issue #39)</li>
|
<li>Fix return value for table.remove() and table.insert() (fixes issue #39)</li>
|
||||||
<li>Fix aliasing issue for some multiple assignments from varargs return values (fixes issue #38)</li>
|
<li>Fix aliasing issue for some multiple assignments from varargs return values (fixes issue #38)</li>
|
||||||
<li>Let os.getenv() return System.getenv() values first for JSE, then fall back to properties (fixes issue #25)</li>
|
<li>Let os.getenv() return System.getenv() values first for JSE, then fall back to properties (fixes issue #25)</li>
|
||||||
<li>Improve collection of orphaned coroutines when yielding from debug hook functions.</li>
|
<li>Improve garbage collection of orphaned coroutines when yielding from debug hook functions (fixes issue #32).</li>
|
||||||
<li>LuaScriptEngineFactory.getScriptEngine() now returns new instance of lua script engine for each call.</li>
|
<li>LuaScriptEngineFactory.getScriptEngine() now returns new instance of LuaScriptEngine for each call.</li>
|
||||||
|
<li>Fix os.date("*t") to return hour in 24 hour format (fixes issue #45)</li>
|
||||||
|
|
||||||
</ul></td></tr>
|
</ul></td></tr>
|
||||||
</table></td></tr></table>
|
</table></td></tr></table>
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ public class OsLib extends TwoArgFunction {
|
|||||||
tbl.set("year", LuaValue.valueOf(d.get(Calendar.YEAR)));
|
tbl.set("year", LuaValue.valueOf(d.get(Calendar.YEAR)));
|
||||||
tbl.set("month", LuaValue.valueOf(d.get(Calendar.MONTH)+1));
|
tbl.set("month", LuaValue.valueOf(d.get(Calendar.MONTH)+1));
|
||||||
tbl.set("day", LuaValue.valueOf(d.get(Calendar.DAY_OF_MONTH)));
|
tbl.set("day", LuaValue.valueOf(d.get(Calendar.DAY_OF_MONTH)));
|
||||||
tbl.set("hour", LuaValue.valueOf(d.get(Calendar.HOUR)));
|
tbl.set("hour", LuaValue.valueOf(d.get(Calendar.HOUR_OF_DAY)));
|
||||||
tbl.set("min", LuaValue.valueOf(d.get(Calendar.MINUTE)));
|
tbl.set("min", LuaValue.valueOf(d.get(Calendar.MINUTE)));
|
||||||
tbl.set("sec", LuaValue.valueOf(d.get(Calendar.SECOND)));
|
tbl.set("sec", LuaValue.valueOf(d.get(Calendar.SECOND)));
|
||||||
tbl.set("wday", LuaValue.valueOf(d.get(Calendar.DAY_OF_WEEK)));
|
tbl.set("wday", LuaValue.valueOf(d.get(Calendar.DAY_OF_WEEK)));
|
||||||
|
|||||||
Reference in New Issue
Block a user