Hey everyone,
Its probably going to be a bit hard for me to describe my problem so I’ll do my best. I’m trying to adjust os.date() using the following method…
local t = os.date("!\*t", os.time() \* 20.57142857142857)
Which to my understanding gets a Coordinated Universal Time? I’m displaying this time using a timer as show below…
myText = display.newText( "", 100, 200, native.systemFont, 12 ) myText:setFillColor( 1, 0, 0.5 ) myText.text = "Time: " .. t.hour .. " : " .. t.min .. " : " .. t.sec timer.performWithDelay( 1000, listener, 0)
Now the above code works perfectly…on the simulator…but not on my Android device? When I run the application on my device, the timer doesn’t run? However, if I displayed the time using this method…
local nt = os.date("\*t", os.time())
The device runs the code perfectly? So it seems to a problem with using the Coordinated Universal Time and a text field?
The device I am testing on is a Samsung Galaxy S4, running Android 4.4.2
Additional Information:
I ran aLogCat to try and determine what the error was, the only problem that seems to be appearing when the application is running is
D/AbsListView(18230) unregisterIRListener() is called
The above error keeps showing up when my application is running. Hope someone can help with this I’ve been trying for 3 - 4 hours researching the cause / solution but with no luck :(