Menu

#23 `DateTime.getCurrentTime()` not working on 3DS

4.7
closed
Reylak
critical
2013-08-31
2013-06-13
Reylak
No

This function only gives the time on the startup of MicroLua.

The workaround in the current 'libs.lua' updates "manually" the time.

The idea would be to get Lua's os.time() working (and so on) so eventually DateTime could be deprecated.

Related

Wiki: 3DSTimeWorkaround

Discussion

  • Reylak

    Reylak - 2013-07-29

    As said in [#6] and commit [0e7851], DateTime has been removed while updating to Lua 5.2.2. We need to know how the functions from Lua os.time() and os.date() behave now.

    If they don't work properly (i.e. time is not updated) we should incorporate the previous workaround that was in 'libs.lua' into these two functions.

     

    Related

    Issues: #6
    Commit: [0e7851]

  • Reylak

    Reylak - 2013-08-22

    This bug is actually directly related to devkitPro and MicroLua has no means of fixing it other than making a workaround with timers.
    See this ticket from devkitPro. This bug has been known for a year now...

    EDIT: we have this thread too.

     

    Last edit: Reylak 2013-08-22
  • Reylak

    Reylak - 2013-08-27

    This bug being unrelated to MicroLua itself, we will officially include the workaround of 4.6.1_a.

     
  • Reylak

    Reylak - 2013-08-31
    • status: accepted --> closed
    • Priority: --> critical
     
  • Reylak

    Reylak - 2013-08-31

    As of [375841], the workaround is added to MicroLua.
    Read the commit log and [3DSTimeWorkaround] for full detail.

    Although it is untested on 3DS, there is a true effect on NDSLite where the time seems to go twice as fast.

     

    Related

    Commit: [375841]
    Wiki: 3DSTimeWorkaround

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.