🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Save timestamp without it's time...

#53
From: Papadomichelakis John
Date: Thu, 05 Nov 1998 00:00
53 lines
1982 bytes
This is a multi-part message in MIME format.
--------------17DB2C29396F6DF9DA989078
Content-Type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 7bit

When I update Timestamp fields, I want to ignore my GMT.

Currently, if I create a timestamp using an expression like this
new Timestamp(1998, 0, 1, 0, 0, 0, 0)

and save it to database, it saves:
01/01/1998 03:00

What I must do to avoid this?

I think that if I try
new Timestamp(1997, 11, 31, 21, 0, 0, 0)
it will save what I want but I don't like it.

Anything else?

--

Papadomichelakis John
"Unite for Java! - http://www.javalobby.org"
__________________________________________________
email : michelos@freemail.gr
TEL   : 30 31 758 429,       30 31 709 796
__________________________________________________


--------------17DB2C29396F6DF9DA989078
Content-Type: text/x-vcard; charset=iso-8859-7;
 name="michelos.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Papadomichelakis John
Content-Disposition: attachment;
 filename="michelos.vcf"

begin:vcard 
n:Papadomichelakis;John
x-mozilla-html:TRUE
org:BIA
adr:;;;Thessaloniki;;56224;Hellas
version:2.1
email;internet:michelos@freemail.gr
x-mozilla-cpt:;0
tel;home:758 429
tel;work:267 923
fn:John Papadomichelakis
end:vcard

--------------17DB2C29396F6DF9DA989078--
Technical Details
Message-ID: <36421A96.339BF07A@freemail.gr>
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: 1073da,a9c08da5ed3fbf19,start
X-Google-Attributes: gid1073da,public
X-Google-Thread: f74b3,a9c08da5ed3fbf19,start
X-Google-Attributes: gidf74b3,public
From: Papadomichelakis John <michelos@freemail.gr>
Subject: Save timestamp without it's time...
Date: 1998/11/05
Message-ID: <36421A96.339BF07A@freemail.gr>
X-Deja-AN: 409173143
X-Accept-Language: el
Content-Type: multipart/mixed; boundary="------------17DB2C29396F6DF9DA989078"
Organization: BIA
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.database