No It just shows data without adding timezone offset. When you put localtime file the system adds the offset Besides look few posts earlier. We are working on a new (safer) way of setting time which will always show correct time for your time zonezoelechat wrote:I know but look carefully at second instance of -U, when localtime file exists it is no longer UTC but UTC+1, -U should always return UTC, no?
[App] Get/Set Current Time From TV C/D/E
Re: [App] Get/Set Current Time From TV C/D/E
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Re: [App] Get/Set Current Time From TV C/D/E
Ok
Anyway, even if "wrong" values are shown, good ones are still set using -s / -u
Just a matter of offset
Anyway, even if "wrong" values are shown, good ones are still set using -s / -u
Code: Select all
./getsetcurrenttimefromtv -n exeDSP -u
Current Time: 1393869864
Current TimeZone Number: 9
Current TimeZone Offset: 60
The current date/time is: Mon Mar 3 19:04:24 2014
Current Time+Offset: 1393873464
The current date/time+offset is: Mon Mar 3 20:04:24 2014
Succesfully set current time.
Code: Select all
date -u
Mon Mar 3 18:04:38 UTC 2014
Code: Select all
date
Mon Mar 3 19:04:30 CET 2014
I do NOT receive any PM. Please use forum.
Re: [App] Get/Set Current Time From TV C/D/E
You run:
Running with -u or -s shows information that are used for debug purposes only. If you want to see "good" time use either -U or -D. Besides this line:
Shows correct time for your timezone
Code: Select all
./getsetcurrenttimefromtv -n exeDSP -u
Code: Select all
The current date/time is: Mon Mar 3 19:04:24 2014
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Re: [App] Get/Set Current Time From TV C/D/E
Understood and no complaint about nothing
Just noticing that if localtime file exists, values shown by -D -U are offset by localtime
Just noticing that if localtime file exists, values shown by -D -U are offset by localtime
I do NOT receive any PM. Please use forum.
Re: [App] Get/Set Current Time From TV C/D/E
On my ES8000 I'm getting error:
I have saved it in :
I tried to use it with ntpclient active and it works but if ntpclient is disabled, after TV reboot I get the above errors.
Can you help in debugging ?
Code: Select all
VDLinux#> ./getsetcurrenttimefromtv -n exeDSP -s
cannot write code, error!
Segmentation fault
Code: Select all
VDLinux#> ./getsetcurrenttimefromtv -n exeDSP -d -s
pc=420334dc lr=420334c8 sp=beb98e80 fp=85e0440
r0=fffffe00 r1=80
r2=1 r3=0
Error getting symbol: g_AppTV
symbol: g_pAppTV -> @0x085dd2e8
Error getting symbol: _ZN4TCTv11GetTimeZoneEPiS0_i
symbol: _ZN4TCTv11GetTimeZoneEPiS0_ -> @0x0108a06c
symbol: _ZN4TCTv17GetSystemInfoTimeEPmi -> @0x0108a380
symbol: adbg_CheckSystem -> @0x0465ebc0
Patched adbg_CheckSystem at @0x0465ebc0
symbol: mprotect -> @0x41bb9c80
Stack: @0xbeb7c000 - @0xbeb9d000
pc=108a06c lr=712cc sp=be8a4920 fp=23324
r0=be8a4920 r1=7152e
r2=c6bb0 r3=0
cannot write code, error!
Patching completed!
Segmentation fault
Code: Select all
VDLinux#> cd /mtd_rwcommon/Time_Set/
VDLinux#> ls
getsetcurrenttimefromtv
VDLinux#> ./getsetcurrenttimefromtv -n exeDSP -s
cannot write code, error!
Segmentation fault
Can you help in debugging ?
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
Re: [App] Get/Set Current Time From TV C/D/E
Without ntp do you have correct time and date on your tv? Not the samygo:)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Re: [App] Get/Set Current Time From TV C/D/E
Without NTP the data and time on TV is set wrong to 1970.
If I run ntpclient than it is correct but I do not like ntpclient for other issues on Smarthub on my TV.
with ntpclient active:
If I run ntpclient than it is correct but I do not like ntpclient for other issues on Smarthub on my TV.
with ntpclient active:
Code: Select all
VDLinux#> ./getsetcurrenttimefromtv -n exeDSP -u
Current Time: 1394812861
Current TimeZone Number: 9
Current TimeZone Offset: 60
The current date/time is: Fri Mar 14 16:01:01 2014
Current Time+Offset: 1394816461
The current date/time+offset is: Fri Mar 14 17:01:01 2014
Succesfully set current time.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
Re: [App] Get/Set Current Time From TV C/D/E
Stop telling lies I am not asking about the time on samygo, ssh, telnet, http, ftp, etc. I want to know whether (without running any tools) time on your TV (use the remote ) is correct? Also what tv model are you using?miazza wrote:Without NTP the data and time on TV is set wrong to 1970.
If I run ntpclient than it is correct but I do not like ntpclient for other issues on Smarthub on my TV.
with ntpclient active:
Code: Select all
VDLinux#> ./getsetcurrenttimefromtv -n exeDSP -u Current Time: 1394812861 Current TimeZone Number: 9 Current TimeZone Offset: 60 The current date/time is: Fri Mar 14 16:01:01 2014 Current Time+Offset: 1394816461 The current date/time+offset is: Fri Mar 14 17:01:01 2014 Succesfully set current time.
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Re: [App] Get/Set Current Time From TV C/D/E
OK Sorry. If I press the info button on the remote the time is correct in the info bar.
My TV is 46ES8000.
In summary:
No root (no samygo): Time on info-bar is correct
root (samygo) non ntpclient: Time is correct in info-bar but time is wrong in the system
root (samygo + ntpclient: Time is correct in info-bar and in the system
I hope this clarify my situation.
PS: every time I switch off the TV, the bin getsetcurrenttimefromtv is set to dimension 0 and I need to ftp it again in order to try using it.
My TV is 46ES8000.
In summary:
No root (no samygo): Time on info-bar is correct
root (samygo) non ntpclient: Time is correct in info-bar but time is wrong in the system
root (samygo + ntpclient: Time is correct in info-bar and in the system
I hope this clarify my situation.
PS: every time I switch off the TV, the bin getsetcurrenttimefromtv is set to dimension 0 and I need to ftp it again in order to try using it.
Last edited by miazza on Sat Mar 15, 2014 10:50 am, edited 1 time in total.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
Re: [App] Get/Set Current Time From TV C/D/E
Yeah. You use the app for Setting the time but (without ntp) does it display correct time?
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!