LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2015, 06:00 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
TimeZone Problem


Dear Friends ,

My date value shows One hour ahead from the present time in BDT . I stay on Asia/Dhaka zone and +6.00 . Please look @ the below output :

------------------------------------------------------------
[root@pbldc-ntpsrv Asia]# cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Dhaka"
UTC=true
ARC=false
-------------------------------------------------------------


But , My problem is , the below Date command output shows 'BDST' instead of 'BDT' .
------------------------------------
"[root@pbldc-ntpsrv Asia]# date
Sat May 9 16:59:37 BDST 2015
-------------------------------------
But it should be :

---------------------------------
[root@pbldc-ntpsrv Asia]# date
Sat May 9 15:59:37 BDT 2015
---------------------------------

---------------------
[root@pbldc-ntpsrv ~]# date +Z
BDST --Should be BDT
[root@pbldc-ntpsrv ~]# date +%z
+0700 --Should bt +0600
[root@pbldc-ntpsrv ~]#

------------------------------------


How I fix it in redhat lnux 5.5 server .

Last edited by shipon_97; 05-09-2015 at 06:06 AM.
 
Old 05-09-2015, 06:11 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
The timezone Asia/Dhaka contains daylight saving time information and therefore will automatically change. If do not want DST then change your time zone to a fixed value:

/usr/share/zoneinfo/Etc/GMT+6
 
Old 05-09-2015, 01:02 PM   #3
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
Dear Michaelk. Thx for your reply . Would u plz tell me how can I link below two files at a time ?

ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime

ln -s /usr/share/zoneinfo/Etc/GMT+6 /etc/localtime
 
Old 05-09-2015, 01:49 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You can not. I assume you want the time to display as BDT. About the only way I know is to create your own zone file which is a binary file. You need to download the GMT+6 text file Edit and compile with zic. Maybe others will reply with an easier method.

https://wiki.debian.org/TimeZoneChanges

Last edited by michaelk; 05-09-2015 at 02:09 PM.
 
Old 05-09-2015, 02:21 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Did your country recently change the DST start/end dates? By "recently" I mean, since RHEL 5.5 was released in March 2010. Also, is there a reason you aren't running 5.10? 5.5 is obsolete. All you need is a current support contract and just run "yum update".

Last edited by suicidaleggroll; 05-09-2015 at 03:33 PM.
 
Old 05-09-2015, 03:10 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
I should of checked that first. Does not appear to be the case. The output of the command will show your current timezone information zdump -v Asia/Dhaka

These are the last few lines from my CentOS 6
Code:
Asia/Dhaka  Thu Mar 25 17:59:59 1971 UTC = Thu Mar 25 23:59:59 1971 DACT isdst=0 gmtoff=21600
Asia/Dhaka  Thu Mar 25 18:00:00 1971 UTC = Fri Mar 26 00:00:00 1971 BDT isdst=0 gmtoff=21600
Asia/Dhaka  Fri Jun 19 16:59:59 2009 UTC = Fri Jun 19 22:59:59 2009 BDT isdst=0 gmtoff=21600
Asia/Dhaka  Fri Jun 19 17:00:00 2009 UTC = Sat Jun 20 00:00:00 2009 BDST isdst=1 gmtoff=25200
Asia/Dhaka  Thu Dec 31 16:59:59 2009 UTC = Thu Dec 31 23:59:59 2009 BDST isdst=1 gmtoff=25200
Asia/Dhaka  Thu Dec 31 17:00:00 2009 UTC = Thu Dec 31 23:00:00 2009 BDT isdst=0 gmtoff=21600
Asia/Dhaka  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 09:14:07 2038 BDT isdst=0 gmtoff=21600
Asia/Dhaka  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 09:14:07 2038 BDT isdst=0 gmtoff=21600
 
Old 05-09-2015, 03:40 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
My CentOS 7 and a few old Fedora systems look similar to yours. Maybe it would help if the OP posted his zdump output.
 
Old 05-12-2015, 11:55 PM   #8
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
I think zdump output is similar like you ... ...

...Posted last few lines ...

Asia/Dhaka Wed Oct 31 16:59:00 2035 UTC = Wed Oct 31 22:59:00 2035 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:58:59 2036 UTC = Mon Mar 31 22:58:59 2036 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:59:00 2036 UTC = Mon Mar 31 23:59:00 2036 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:58:59 2036 UTC = Fri Oct 31 23:58:59 2036 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:59:00 2036 UTC = Fri Oct 31 22:59:00 2036 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:58:59 2037 UTC = Tue Mar 31 22:58:59 2037 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:59:00 2037 UTC = Tue Mar 31 23:59:00 2037 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:58:59 2037 UTC = Sat Oct 31 23:58:59 2037 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:59:00 2037 UTC = Sat Oct 31 22:59:00 2037 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 09:14:07 2038 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 09:14:07 2038 BDT isdst=0 gmtoff=21600
 
Old 05-13-2015, 12:10 AM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
That looks quite different. What are your entries around 2014-2016?
 
Old 05-13-2015, 01:06 AM   #10
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
I paste full output here ..

------------
[root@pbldc-ntpsrv ~]# zdump -v Asia/Dhaka
Asia/Dhaka Fri Dec 13 20:45:52 1901 UTC = Sat Dec 14 02:39:12 1901 BDT isdst=0 gmtoff=21200
Asia/Dhaka Sat Dec 14 20:45:52 1901 UTC = Sun Dec 15 02:39:12 1901 BDT isdst=0 gmtoff=21200
Asia/Dhaka Tue Sep 30 18:06:39 1941 UTC = Tue Sep 30 23:59:59 1941 BDT isdst=0 gmtoff=21200
Asia/Dhaka Tue Sep 30 18:06:40 1941 UTC = Wed Oct 1 00:36:40 1941 BDT isdst=0 gmtoff=23400
Asia/Dhaka Thu May 14 17:29:59 1942 UTC = Thu May 14 23:59:59 1942 BDT isdst=0 gmtoff=23400
Asia/Dhaka Thu May 14 17:30:00 1942 UTC = Thu May 14 23:00:00 1942 BDT isdst=0 gmtoff=19800
Asia/Dhaka Mon Aug 31 18:29:59 1942 UTC = Mon Aug 31 23:59:59 1942 BDT isdst=0 gmtoff=19800
Asia/Dhaka Mon Aug 31 18:30:00 1942 UTC = Tue Sep 1 01:00:00 1942 BDT isdst=0 gmtoff=23400
Asia/Dhaka Sat Sep 29 17:29:59 1951 UTC = Sat Sep 29 23:59:59 1951 BDT isdst=0 gmtoff=23400
Asia/Dhaka Sat Sep 29 17:30:00 1951 UTC = Sat Sep 29 23:30:00 1951 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Jun 19 16:59:59 2009 UTC = Fri Jun 19 22:59:59 2009 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Jun 19 17:00:00 2009 UTC = Sat Jun 20 00:00:00 2009 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Dec 31 16:58:59 2009 UTC = Thu Dec 31 23:58:59 2009 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Dec 31 16:59:00 2009 UTC = Thu Dec 31 22:59:00 2009 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:58:59 2010 UTC = Wed Mar 31 22:58:59 2010 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:59:00 2010 UTC = Wed Mar 31 23:59:00 2010 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:58:59 2010 UTC = Sun Oct 31 23:58:59 2010 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:59:00 2010 UTC = Sun Oct 31 22:59:00 2010 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:58:59 2011 UTC = Thu Mar 31 22:58:59 2011 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:59:00 2011 UTC = Thu Mar 31 23:59:00 2011 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:58:59 2011 UTC = Mon Oct 31 23:58:59 2011 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:59:00 2011 UTC = Mon Oct 31 22:59:00 2011 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:58:59 2012 UTC = Sat Mar 31 22:58:59 2012 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:59:00 2012 UTC = Sat Mar 31 23:59:00 2012 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:58:59 2012 UTC = Wed Oct 31 23:58:59 2012 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:59:00 2012 UTC = Wed Oct 31 22:59:00 2012 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:58:59 2013 UTC = Sun Mar 31 22:58:59 2013 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:59:00 2013 UTC = Sun Mar 31 23:59:00 2013 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:58:59 2013 UTC = Thu Oct 31 23:58:59 2013 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:59:00 2013 UTC = Thu Oct 31 22:59:00 2013 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:58:59 2014 UTC = Mon Mar 31 22:58:59 2014 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:59:00 2014 UTC = Mon Mar 31 23:59:00 2014 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:58:59 2014 UTC = Fri Oct 31 23:58:59 2014 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:59:00 2014 UTC = Fri Oct 31 22:59:00 2014 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:58:59 2015 UTC = Tue Mar 31 22:58:59 2015 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:59:00 2015 UTC = Tue Mar 31 23:59:00 2015 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:58:59 2015 UTC = Sat Oct 31 23:58:59 2015 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:59:00 2015 UTC = Sat Oct 31 22:59:00 2015 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:58:59 2016 UTC = Thu Mar 31 22:58:59 2016 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:59:00 2016 UTC = Thu Mar 31 23:59:00 2016 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:58:59 2016 UTC = Mon Oct 31 23:58:59 2016 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:59:00 2016 UTC = Mon Oct 31 22:59:00 2016 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:58:59 2017 UTC = Fri Mar 31 22:58:59 2017 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:59:00 2017 UTC = Fri Mar 31 23:59:00 2017 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:58:59 2017 UTC = Tue Oct 31 23:58:59 2017 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:59:00 2017 UTC = Tue Oct 31 22:59:00 2017 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:58:59 2018 UTC = Sat Mar 31 22:58:59 2018 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:59:00 2018 UTC = Sat Mar 31 23:59:00 2018 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:58:59 2018 UTC = Wed Oct 31 23:58:59 2018 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:59:00 2018 UTC = Wed Oct 31 22:59:00 2018 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:58:59 2019 UTC = Sun Mar 31 22:58:59 2019 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:59:00 2019 UTC = Sun Mar 31 23:59:00 2019 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:58:59 2019 UTC = Thu Oct 31 23:58:59 2019 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:59:00 2019 UTC = Thu Oct 31 22:59:00 2019 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:58:59 2020 UTC = Tue Mar 31 22:58:59 2020 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:59:00 2020 UTC = Tue Mar 31 23:59:00 2020 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:58:59 2020 UTC = Sat Oct 31 23:58:59 2020 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:59:00 2020 UTC = Sat Oct 31 22:59:00 2020 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:58:59 2021 UTC = Wed Mar 31 22:58:59 2021 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:59:00 2021 UTC = Wed Mar 31 23:59:00 2021 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:58:59 2021 UTC = Sun Oct 31 23:58:59 2021 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:59:00 2021 UTC = Sun Oct 31 22:59:00 2021 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:58:59 2022 UTC = Thu Mar 31 22:58:59 2022 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:59:00 2022 UTC = Thu Mar 31 23:59:00 2022 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:58:59 2022 UTC = Mon Oct 31 23:58:59 2022 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:59:00 2022 UTC = Mon Oct 31 22:59:00 2022 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:58:59 2023 UTC = Fri Mar 31 22:58:59 2023 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:59:00 2023 UTC = Fri Mar 31 23:59:00 2023 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:58:59 2023 UTC = Tue Oct 31 23:58:59 2023 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:59:00 2023 UTC = Tue Oct 31 22:59:00 2023 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:58:59 2024 UTC = Sun Mar 31 22:58:59 2024 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:59:00 2024 UTC = Sun Mar 31 23:59:00 2024 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:58:59 2024 UTC = Thu Oct 31 23:58:59 2024 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:59:00 2024 UTC = Thu Oct 31 22:59:00 2024 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:58:59 2025 UTC = Mon Mar 31 22:58:59 2025 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:59:00 2025 UTC = Mon Mar 31 23:59:00 2025 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:58:59 2025 UTC = Fri Oct 31 23:58:59 2025 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:59:00 2025 UTC = Fri Oct 31 22:59:00 2025 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:58:59 2026 UTC = Tue Mar 31 22:58:59 2026 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:59:00 2026 UTC = Tue Mar 31 23:59:00 2026 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:58:59 2026 UTC = Sat Oct 31 23:58:59 2026 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:59:00 2026 UTC = Sat Oct 31 22:59:00 2026 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:58:59 2027 UTC = Wed Mar 31 22:58:59 2027 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:59:00 2027 UTC = Wed Mar 31 23:59:00 2027 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:58:59 2027 UTC = Sun Oct 31 23:58:59 2027 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:59:00 2027 UTC = Sun Oct 31 22:59:00 2027 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:58:59 2028 UTC = Fri Mar 31 22:58:59 2028 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:59:00 2028 UTC = Fri Mar 31 23:59:00 2028 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:58:59 2028 UTC = Tue Oct 31 23:58:59 2028 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:59:00 2028 UTC = Tue Oct 31 22:59:00 2028 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:58:59 2029 UTC = Sat Mar 31 22:58:59 2029 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:59:00 2029 UTC = Sat Mar 31 23:59:00 2029 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:58:59 2029 UTC = Wed Oct 31 23:58:59 2029 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:59:00 2029 UTC = Wed Oct 31 22:59:00 2029 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:58:59 2030 UTC = Sun Mar 31 22:58:59 2030 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sun Mar 31 16:59:00 2030 UTC = Sun Mar 31 23:59:00 2030 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:58:59 2030 UTC = Thu Oct 31 23:58:59 2030 BDST isdst=1 gmtoff=25200
Asia/Dhaka Thu Oct 31 16:59:00 2030 UTC = Thu Oct 31 22:59:00 2030 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:58:59 2031 UTC = Mon Mar 31 22:58:59 2031 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:59:00 2031 UTC = Mon Mar 31 23:59:00 2031 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:58:59 2031 UTC = Fri Oct 31 23:58:59 2031 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:59:00 2031 UTC = Fri Oct 31 22:59:00 2031 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:58:59 2032 UTC = Wed Mar 31 22:58:59 2032 BDT isdst=0 gmtoff=21600
Asia/Dhaka Wed Mar 31 16:59:00 2032 UTC = Wed Mar 31 23:59:00 2032 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:58:59 2032 UTC = Sun Oct 31 23:58:59 2032 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sun Oct 31 16:59:00 2032 UTC = Sun Oct 31 22:59:00 2032 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:58:59 2033 UTC = Thu Mar 31 22:58:59 2033 BDT isdst=0 gmtoff=21600
Asia/Dhaka Thu Mar 31 16:59:00 2033 UTC = Thu Mar 31 23:59:00 2033 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:58:59 2033 UTC = Mon Oct 31 23:58:59 2033 BDST isdst=1 gmtoff=25200
Asia/Dhaka Mon Oct 31 16:59:00 2033 UTC = Mon Oct 31 22:59:00 2033 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:58:59 2034 UTC = Fri Mar 31 22:58:59 2034 BDT isdst=0 gmtoff=21600
Asia/Dhaka Fri Mar 31 16:59:00 2034 UTC = Fri Mar 31 23:59:00 2034 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:58:59 2034 UTC = Tue Oct 31 23:58:59 2034 BDST isdst=1 gmtoff=25200
Asia/Dhaka Tue Oct 31 16:59:00 2034 UTC = Tue Oct 31 22:59:00 2034 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:58:59 2035 UTC = Sat Mar 31 22:58:59 2035 BDT isdst=0 gmtoff=21600
Asia/Dhaka Sat Mar 31 16:59:00 2035 UTC = Sat Mar 31 23:59:00 2035 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:58:59 2035 UTC = Wed Oct 31 23:58:59 2035 BDST isdst=1 gmtoff=25200
Asia/Dhaka Wed Oct 31 16:59:00 2035 UTC = Wed Oct 31 22:59:00 2035 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:58:59 2036 UTC = Mon Mar 31 22:58:59 2036 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Mar 31 16:59:00 2036 UTC = Mon Mar 31 23:59:00 2036 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:58:59 2036 UTC = Fri Oct 31 23:58:59 2036 BDST isdst=1 gmtoff=25200
Asia/Dhaka Fri Oct 31 16:59:00 2036 UTC = Fri Oct 31 22:59:00 2036 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:58:59 2037 UTC = Tue Mar 31 22:58:59 2037 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:59:00 2037 UTC = Tue Mar 31 23:59:00 2037 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:58:59 2037 UTC = Sat Oct 31 23:58:59 2037 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:59:00 2037 UTC = Sat Oct 31 22:59:00 2037 BDT isdst=0 gmtoff=21600
Asia/Dhaka Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 09:14:07 2038 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 09:14:07 2038 BDT isdst=0 gmtoff=21600
[root@pbldc-ntpsrv ~]# date
Wed May 13 11:32:40 BDST 2015
----------------

If I change 'BDST' to 'BDT' , my problem is resolved , but I cant do this .
 
Old 05-13-2015, 10:35 AM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by shipon_97 View Post
Asia/Dhaka Fri Oct 31 16:59:00 2014 UTC = Fri Oct 31 22:59:00 2014 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:58:59 2015 UTC = Tue Mar 31 22:58:59 2015 BDT isdst=0 gmtoff=21600
Asia/Dhaka Tue Mar 31 16:59:00 2015 UTC = Tue Mar 31 23:59:00 2015 BDST isdst=1 gmtoff=25200
Asia/Dhaka Sat Oct 31 16:58:59 2015 UTC = Sat Oct 31 23:58:59 2015 BDST isdst=1 gmtoff=25200
That pretty clearly shows that your system thinks it should be on BDST (7 hours off UT) between Mar 31 and Oct 31. Both michaelk's and my systems show that BDST was permanently shut down after 2009, and it should be BDT from then on. That tells me that a policy shift was made in 2009/2010 to eliminate BDST, and since your system hasn't been updated since then, it never got the memo.

Update your system, as you should have been doing for many years now, and it should fix that problem as well as all of the other security vulnerabilities and bugs that have been found in the last 5 years (heartbleed, shellshock, etc.).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] postgresql 9.3 - problem with timezone jdkaye Linux - Software 2 10-25-2013 01:43 AM
TimeZone problem MikeyCarter Fedora 2 03-26-2007 04:16 PM
timezone problem Mathsniper Linux - Newbie 9 06-08-2005 01:55 PM
timezone problem Lord Zoltar Linux - General 5 09-13-2004 11:38 PM
Timezone funny problem. ]un]ie Solaris / OpenSolaris 10 07-21-2004 11:08 PM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration