🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18425

Date class returning wrong time

#18425
From: Dan MacLeod
Date: Mon, 29 Jun 1998 00:00
16 lines
781 bytes
This code returns a time that is three hours earlier then the real time,
does anyone have any idea?

Thanks,
Dan


SimpleDateFormat simpleTimeFormat = new SimpleDateFormat();
DateFormat timeFormat = simpleTimeFormat.getTimeInstance(DateFormat.SHORT);
timeString = timeFormat.format(todaysDate);

--
Dan MacLeod

dmacleod@gate.net
Technical Details
Message-ID: <6n8cka$1gj9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5624f1d36c8aea95,start
X-Google-Attributes: gidf74b3,public
From: "Dan MacLeod" <dmacleod@gate.net>
Subject: Date class returning wrong time
Date: 1998/06/29
Message-ID: <6n8cka$1gj9@forums.borland.com>
X-Deja-AN: 367122154
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: CORE Engineering
Newsgroups: borland.public.jbuilder.java.language