Skip to main content

Setting IST time zone in OCAP RI.

16 replies [Last post]
sdyavarashetti
Offline
Joined: 2010-07-27
Points: 0

What is the value for IST time zone (India time) to be configured in OCAPRI\common\resources\GpnvsDatabaseFile.xml file.

For PST (Pacific time): the entry is:

And what is the value for IST?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
smaynard
Offline
Joined: 2009-01-27
Points: 0

It should be noted that the time on the front panel display is from the platform and obtained from the platform's system time. To test the timezone change I modified a test xlet to call Calendar and obtain the hour, minute, and second followed by printing those values. The values change appropriately with corresponding time_zone value changes in the GpnvsDatabaseFile.xml file.

swati_V
Offline
Joined: 2012-07-09
Points: 0

hi, i am also facing the same problem. i am using ocap 1.1.4. but i cud not find GpnvsDatabaseFile.xml file.
reply.

rdecker
Offline
Joined: 2009-02-25
Points: 0

I was able to set the time zone to -500 using /tQ= and it worked. I noticed that there is another value for daylight savings. When the time changes the value for time zone would be -400 or /xA= and I'm wondering if I have to change it manually or if the daylight savings setting handles it. Can you give more details on that?

fastbhavin
Offline
Joined: 2011-03-13
Points: 0

I hav been passed through same da same situation, but in ma application...there is no problem as the operating system itself is changing the time automatically to fix that gap of 1 hour....may some configuration require to do so which is already done in ma case....do observe with different values. might be of some helps to you.

smaynard
Offline
Joined: 2009-01-27
Points: 0

From the CCIF spec:

daylight_savings (Type 1 Version 2 and above)

daylight_savings()
{
daylight_savings_control (8 bits)

if(daylight_savings_control == 0x02)
{
daylight_savings_delta (8 bits)
daylight_savings_entry_time (32 bits)
daylight_savings_exit_time (32 bits)
}
}


The Card derives information needed to build the daylight_savings_control daylight_savings feature from the configuration messages received from the Headend.
0x00 Reserved
0x01 Do not use daylight savings time
0x02 Use daylight savings
0x03-0xFF Reserved


Daylight savings delta time in number of minutes.


Daylight savings entry time given as time lapsed since 12 AM Jan 6, 1980, in units of GPS seconds.


Daylight savings exit time given as time lapsed since 12 AM Jan 6, 1980, in units of GPS seconds. The value of this parameter shall be greater than the value of daylight_savings_entry_time.

smaynard
Offline
Joined: 2009-01-27
Points: 0

The value is a base64 encoded two’s complement integer offset, in number of minutes, from GMT and will be in the range of –12 to +12 hours.

One can observe the current value by:
echo "/lw=" | base64 -d > tz.bin
hexdump tz.bin
000000 fe 5c >.\<
000002

so 0xFE5C is 65116 (twos complement -420, -7 hours converted to minutes)

to change to GMT +5.5 hours, use 0x014A is 330

hexedit the above tz.bin to be 0x014A and then encode it:
base64 tz.bin
which outputs "AUo="

cpratt
Offline
Joined: 2008-12-18
Points: 0

The value "/iA=" is the base-64 encoding of -480 (decimal) - or GMT-8:00 (PST).

If IST is GMT+5:30, I believe the value would be "AUo=" (330/0x014A using an online base-64 utility).

swati_V
Offline
Joined: 2012-07-09
Points: 0

hi cpratt,
"AUo=" is not for IST(GMT +5:30).. it is for gmt +6:30.
can you please tell me what would be the value to set time zone to gmt +5:30?
thanks in advance.
reply soon

swati_V
Offline
Joined: 2012-07-09
Points: 0

hi cpratt,
i am also facing d same problem here.in DVR application, emulator doesnt show
resrding time as per IST. it takes GMT -6:00 as default.
GpnvsDatabaseFile.xml is located in twb eclipse. but i am still not getting how
to change it's time zone property to IST time zone.

here is the code of GpnvsDatabaseFile.xml---

give me some solution for this.
thanx in advance

swati_V
Offline
Joined: 2012-07-09
Points: 0

hi cpratt,
i am also facing d same problem here.in DVR application, emulator doesnt show
resrding time as per IST. it takes GMT -6:00 as default.
GpnvsDatabaseFile.xml is located in twb eclipse. but i am still not getting how
to change it's time zone property to IST time zone.
i am attaching my file GpnvsDatabaseFile.xml for your refernce.
give me some suggestion.
thanx in advance.

cpratt
Offline
Joined: 2008-12-18
Points: 0

forgot to mention:

The "330" value is minutes from GMT (5h*60min/h + 30min = 330min).

sdyavarashetti
Offline
Joined: 2010-07-27
Points: 0

Thanks for the reply.

But I am not getting the correct IST time with the given value.

Can you please explain how to calculate the value.

Thanks.

arjun8
Offline
Joined: 2012-08-20
Points: 0

Hi,
I am unable to change the time zone from GMT-6.00 to IST.
Can you please let me know the changes that i have to make in GPNVSDATABASE.XML filefor converting the default time zone to IST.
Please reply with a proper valid example.
Waiting for your reply....

Regards,
Arjun
(India)

smaynard
Offline
Joined: 2009-01-27
Points: 0

The value is a base64 encoded two’s complement integer offset, in number of minutes, from GMT and will be in the range of "12 to +12 hours.

One can observe the current value by:
echo "/lw=" | base64 -d > tz.bin
hexdump tz.bin
000000 fe 5c >.\<
000002

so 0xFE5C is 65116 (twos complement -420, -7 hours converted to minutes)

to change to GMT +5.5 hours, use 0x014A is 330

hexedit the above tz.bin to be 0x014A and then encode it:
base64 tz.bin
which outputs "AUo="

arjun8
Offline
Joined: 2012-08-20
Points: 0

Hi,
I am also getting the same problem.I tried changing the values in
GPNVSDATABASE.xml but still it shows default (i.e. GMT-6.00).
Can you please the requied changes to be made in the GPNVSDATBASE.XML
file with a proper example.
Waiting for your reply...

Thanks,
Arjun Katyal
(INDIA)

swati_V
Offline
Joined: 2012-07-09
Points: 0

hi,
i am also facing the same problem. i tried setting the time zone property in
GpnvsDatabaseFile.xml. this file is in twb eclipese plugin.

these are some line of codes which i supposed to change to set IST time.
but i am still not getting what value should i put in timezone propertyt
for IST.
please help.
thnx in advance.