Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Time format seems to wrong?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Tue May 23, 2006 8:45 am    Post subject: Time format seems to wrong? Reply with quote

Hello All,

After dozens of recompilations for DSS, it seems that I up to something that may cause the problem.

As I can see at DSS perl GUI via browser, the time format seems wrong: 0. Jan 1900 00:00:6196512

Code:

Status:  Started Sun, 0. Jan 1900 00:00:6196512 
Current Time On Server:  Sun, 0. Jan 1900 00:00:6196884 
Up Time:  6 min 23 sec 


running date command I can see:

Code:

# date
Tue May 23 08:16:37 GMT 2006


Here is my emerge info:
Code:

# emerge info
Portage 2.0.54-r2 (default-linux/sparc/sparc64/2006.0/2.4, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-ck10 sparc64)
=================================================================
System uname: 2.6.16-ck10 sparc64 sun4u
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://mirror.hamakor.org.il/pub/mirrors/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo-portage/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="sparc apache2 arts avi berkdb bidi bitmap-fonts bzip2 cli crypt cups dba dlloader dri dvd eds encode esd expat fbcon foomaticdb fortran gcc64 gd gdbm gif gstreamer gtk2 imlib isdnlog jpeg libwww mad mikmod motif mpeg ncurses nls ogg opengl oss pam pcre pdflib perl png pppd python readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS



Can someone tell me how to fix this problem?
Back to top
View user's profile Send private message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Wed May 24, 2006 6:07 am    Post subject: Reply with quote

Hi,

I've resolved it.

The following patch resolves this time problem in DSS"
Code:

Index: WebAdmin/WebAdminHtml/tag_formats.pl
===================================================================
RCS file: /cvs/apsl/StreamingServer/WebAdmin/WebAdminHtml/ tag_formats.pl,v
retrieving revision 1.27
diff -u -r1.27 tag_formats.pl
--- tag_formats.pl 2003/11/06 20:23:51 1.27
+++ tag_formats.pl 2005/08/08 21:06:12
@@ -36,7 +36,7 @@
}
else {
$_[0] = "";
- my @tm = localtime($timeval/1000);
+ my @tm = gmtime($timeval/1000);
my $lang = $ENV{"LANGUAGE"};
if($lang eq "de") {
$_[0] .= sprintf "%s %d %s %d %2.2d:% 2.2d:%2.2d",
@@ -54,7 +54,7 @@
$tm[2], $tm[1], $tm[0];
}
else {
- $_[0] .= sprintf "%s, %d. %s %d %2.2d: %2.2d:%2.2d",
+ $_[0] .= sprintf "%s, %d. %s %d %2.2d: %2.2d:%2.2d (GMT)",
$messages{$weekdayStr [$tm[6]]}, $tm[3], $messages{$monthStr[$tm[4]]}, $tm[5]+1900,
$tm[2], $tm[1], $tm[0];
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum