[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561783: konqueror: Javascript reports time wrongly (TimezoneOffset is wrong)



Package: konqueror
Version: 4:4.3.4-1
Severity: normal


Firstly if I type date +%z on the command line, I get +0000 as the
response showing I am in the GMT timezone

If I create a web page with the following text in it

<html>
<body>

<script type="text/javascript">

var d = new Date(0);

document.write('hours = '+d.getHours()+'<br/>');
document.write('time offset = '+d.getTimezoneOffset());

</script>

</body>
</html>

I get different results in different browsers

In Konqueror and Iceweasel I get hours = 1 time offset = -60

In Epiphany and Chrome under Linux I get hours = 0 time offset = 0
In IE, Firefox, Chrome and Safari running Windows XP in a VirtualBox
on the smae machine I get hours = 0 time offset = 0

I believe the second results are correct, the Konqueror and Iceweasel
times are wrong.  (I have submitted the same bug under Iceweasel)

[Apologies if this has been submitted before - my
/etc/ssmtp/ssmtp.conf file on my local machine was giving a wrong
e-mail address and although a message was sent out to bugs.debian.org
I never had an acknowledgement, and I can't find the bug by searching
for it]

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages konqueror depends on:
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  kdebase-bin               4:4.3.4-1      core binaries for the KDE 4 base m
ii  kdebase-data              4:4.3.4-1      shared data files for the KDE 4 ba
ii  kdebase-runtime           4:4.3.4-2      runtime components from the offici
ii  kdelibs5                  4:4.3.4-1      core libraries for all KDE 4 appli
ii  libc6                     2.10.2-2       GNU C Library: Shared libraries
ii  libkonq5                  4:4.3.4-1      core libraries for Konqueror
ii  libkonqsidebarplugin4     4:4.3.4-1      Konqueror sidebar plugin library
ii  libqt4-dbus               4:4.5.3-4      Qt 4 D-Bus module
ii  libqt4-qt3support         4:4.5.3-4      Qt 3 compatibility library for Qt 
ii  libqt4-xml                4:4.5.3-4      Qt 4 XML module
ii  libqtcore4                4:4.5.3-4      Qt 4 core module
ii  libqtgui4                 4:4.5.3-4      Qt 4 GUI module
ii  libstdc++6                4.4.2-5        The GNU Standard C++ Library v3
ii  libx11-6                  2:1.3.2-1      X11 client-side library

Versions of packages konqueror recommends:
ii  dolphin                       4:4.3.4-1  file manager for KDE 4
ii  konqueror-nsplugins           4:4.3.4-1  Netscape plugin support for Konque

Versions of packages konqueror suggests:
pn  konq-plugins                  <none>     (no description available)

-- no debconf information




Reply to: