Code: Select all
export TZ=GMT+2
./getsetcurrenttimefromtv -n exeDSP -s
Code: Select all
export TZ=GMT+2
./getsetcurrenttimefromtv -n exeDSP -s
Use latest version with -S switch. It will add time offset.greenhorn wrote:I've got this:What am I doing wrong? If ask date, it gives GMT time. It should GMT+2SpoilerShow# date
Thu Jan 1 00:07:04 UTC 1970
# ./getsetcurrenttimefromtv -n exeDSP -d -s
pc=42a64158 lr=42a67928 sp=bec1a8e0 fp=bec1a934
r0=fffffe00 r1=0
r2=1 r3=0
symbol: g_AppTV -> @0x03bf172c
symbol: _ZN4TCTv11GetTimeZoneEPiS0_i -> @0x0003f008
symbol: _ZN4TCTv17GetSystemInfoTimeEPmi -> @0x000398f4
Error getting symbol: adbg_CheckSystem
Adding libc addr to found symaddress @0x000c81a0 + @0x42c2d000 = @0x42cf51a0
symbol: mprotect -> @0x42cf51a0
Stack: @0xbec06000 - @0xbec1b000
pc=42a64158 lr=42a67928 sp=bec1a8e0 fp=bec1a934
r0=fffffe00 r1=0
r2=1 r3=0
Executing injection code at 0xbec1a850
Found new time value.
Current Time: 1393698757
Current TimeZone Number: 9
Current TimeZone Offset: 120
The current date/time is: Sat Mar 1 18:32:37 2014
Current Time+Offset: 1393705957
The current date/time+offset is: Sat Mar 1 20:32:37 2014
Succesfully set current time.
Patching completed!
# date
Sat Mar 1 18:32:40 UTC 2014
#
juuso, juuso... I thought you used it hours agojuuso wrote:OmgSpoilerShowCode: Select all
root@[TV] /> date Thu Jan 1 02:33:44 UTC 1970
Code: Select all
getsetcurrenttimefromtv -n exeDSP -d -s pc=41cdb670 lr=41cdb65c sp=befbc088 fp=5b0e13c r0=fffffe00 r1=80 r2=1 r3=0 Error getting symbol: g_AppTV symbol: g_pAppTV -> @0x05afe818 Error getting symbol: _ZN4TCTv11GetTimeZoneEPiS0_i symbol: _ZN4TCTv11GetTimeZoneEPiS0_ -> @0x00c10778 symbol: _ZN4TCTv17GetSystemInfoTimeEPmi -> @0x00c10c44 Error getting symbol: adbg_CheckSystem symbol: mprotect -> @0x419b2be0 Stack: @0xbefa8000 - @0xbefbd000 pc=41cdb670 lr=41cdb65c sp=befbc088 fp=5b0e13c r0=fffffe00 r1=80 r2=1 r3=0 Executing injection code at 0xbefbbff8 Found new time value. Current Time: 1393697879 Current TimeZone Number: 9 Current TimeZone Offset: 120 The current date/time is: Sat Mar 1 18:17:59 2014 Current Time+Offset: 1393705079 The current date/time+offset is: Sat Mar 1 20:17:59 2014 Succesfully set current time. Patching completed!
Code: Select all
root@[TV] /> date Sat Mar 1 20:18:04 UTC 2014
I will say it that way. TV uses timers. For some timers it uses seconds, for some milliseconds and for other minutes. I assume the same is (as with everything on these TVs) with time There is probably 2 or 3 ways of getting time from TV. Not sure which way Netflix app uses. This app get's time in secondsM11 wrote:I have a stupid question, why are you all so excited about time?
And one more serious question, does the TV report time in seconds or milliseconds? I saw that Netflix app checks time and I did read in other forums that it refuses to start if time doesn't match server time.
Code: Select all
date
Sat Mar 1 22:24:09 UTC 2014
Code: Select all
date -u
Sat Mar 1 22:24:09 UTC 2014
Code: Select all
Current Time: 1393708266
Code: Select all
Current Time+Offset: 1393711866
Doesn't work correctly Read post before. One user already had a problem with. Setting "real" UTC doesn't give you correct time/date when you don't set timezone at the same time.zoelechat wrote:What I supposed is simply set UTC as real UTC (there's only one UTC, expected by date -u command)...and apply your retrieved offset to TimeZone, instead of adding it to UTC (expected by date command)Code: Select all
Current Time: 1393708266
Hoping that is clearCode: Select all
Current Time+Offset: 1393711866