🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

System time

#18678
From: soklay
Date: Sat, 16 May 1998 00:00
17 lines
945 bytes
hi all,

How do I make sure that the system current time that I get 
using System.currentTimeMillis() or other methods return me the 
exact local time?

I find that the time returned is always GMT +1.00 but our local 
time is GMT +8.00. Hence, there's always 7 hours difference. 
How do I resolve this without hardcoding the offset? Has it got 
to do with the locale. The locale which I'm using for my app is 
_en_GB.

Thanks in advance.

Neo S.L.
ICOST Systems Pte Ltd.
Technical Details
Message-ID: <6jirrf$haf5@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,57190fe372fb50d6,start
X-Google-Attributes: gidf74b3,public
From: soklay <icost@singnet.com.sg>
Subject: System time
Date: 1998/05/16
Message-ID: <6jirrf$haf5@forums.borland.com>
X-Deja-AN: 353688433
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: ICOST Systems Pte Ltd
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language