Problem with TimeZone when parsing a date
Hallo all,
my computer has german locale. My Time Zone is +1. (Example London - 4 AM, Germany - 3 AM).
I execute the following code:
SimpleDateFormat dfHandDate = new SimpleDateFormat("EEEE, MMMM d, HH:mm:ss z yyyy", Locale.US);
String s = "Saturday, October 13, 14:05:41 ET 2007";
s = s.replace("ET", "EST"); // java doesn't know ET
Date date = dfHandDate.parse(s);
System.out.println(date);the output is:
Sat Oct 13 21:05:41 CEST 2007This is not correct time. The correct time is 20:05:41.
Why? What do i do wrong?
Thanks
Igor
{color:#000080}No, EST is correct, it stands for Eastern Standard Time, generally referred to in the US and Canada as Eastern Time (ET).
{color}{color:#0000ff}http://en.wikipedia.org/wiki/List_of_U.S._states_by_time_zone{color}{color:#000080}
One way to offset Daylight Saving Time for Central European Time, there may be better ways :-)
date = new Date(date.getTime () +
TimeZone.getTimeZone ("CET").getDSTSavings ());db{color}
Similar Messages
-
Problem with interface - when send the data for PA0002
Hi Gurus,
I am interfacing employees data from one system to another system with all the PA infotypes.
we are using the fuction module " HR_MAINTAIN_MASTERDATA " to upload the master data. Here the problem is, when we send the data - in destination system all the segments have the data correctly . But middle name is not loaded in to the system. Problem with only middle name.
But, here strange thing is, when i resend the idocs it is laoded correctly all the fields with middle name also.
I am unable to figure out the problem .. Please let me know if you have any advise on this ..
Thanking you.
Regards,
Giridhar PujariHi Sikindar,
Technical name is corrent .. and once you resend the idoc, you can't see the problem again.
Regards,
Giridhar Pujari. -
Problem with SDO_relate when using polygons with holes.
I'm having a problem with sdo_relate. I'm trying to extract all elements from a point table (bdtq_batim_p) that are inside a specific polygon from another table (SDA_MUNIC_SS). The spatial index for both table have been rebuilt and the data from both table is valid.
When I do a count on the query, I know the answer should be 1422 elements (Counted in ArcGIS). However, sdo_relate gives a smaller number of elements in the result set.
The query :
SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and sdo_relate( t.SHAPE,s.SHAPE,'mask=anyinteract querytype=window') = 'TRUE'
returns 282 elements. The query with mask=inside, SDO_Anyinteract() and SDO_inside() all give the same result.
I did a test with the following query and the result is 1422 (which is the good result).
SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE';
It's important to note that the polygone (from SDA_MUNIC_SS) that is used for this query have holes in it. I have the same problem with all the polygons from the SDA_MUNIC_SS table that have holes in it. For the polygon without holes, the results are the same for the 2 queries.
My question are :
Why are the result from the two queries different? A query with a buffer of 0 should always return the same result as a query with Anyinteract.
Is there a known problem with SDO_RELATE when using a polygon with holes in it?
Do you have any idea how to solve my problem.Since i don't have much control on the version of Oracle and Patches that we use in the system, we used a workaround that detects the polygons with holes and uses the SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE' operator in those case. We saw a slight decline in performance but it now returns the right results. When the system will be patched, we'll come back to the original version and see if the problem is solved.
-
Problem with content: 7 - Bad sound Data
When I do the following...
Voice = new Sound();
Voice.loadSound("test.mp3", true)
I get the error...
Problem with content: 7 - Bad sound Data
AND
Problem with content: 7 - The sound data format is not
recognized.
I am using the test.mp3 files that comes with Flash8.
Thanks!
BobOK. This combo works!
version flash Player 8
action script 2.0
Audio Stream: MP3, 128 kbps, Stereo best
Audio event: MP3, 128 kbps, Stereo best
Override sound settings (unchecked)
But this combo does not!!
version flash lite 2.0
action script 2.0
Audio Stream: MP3, 128 kbps, Stereo best
Audio event: MP3, 128 kbps, Stereo best
Override sound settings (unchecked)
Still get the error on all Nokias except Nokia 90 which gets
no error but just does not play the file -
Help me, I have a problem with font when export report to PDF?
Hi everyone! Help me
I have a problem with font when export report to PDF
My report uses template .rtf with font Times New Roman (Unicode), language is VietNamese.
when desige template no problem, error only happen when view report by PDF.
Edited by: user10236405 on Oct 15, 2008 11:23 PMgive it time to boot. the time depends on yr memory size n data. soon a process bar will appear indicating the boot process. if still this doesnt work. try formating the phone. but this ways u lose all data on the phone (unless u backed it). relax! the data on the memory card is safe.
-
I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi
Plawexki wrote:
... do you know if the contacts, photos, messages etc will be wiped?
Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
SYNCING with iTunes
See here > http://support.apple.com/kb/HT1386
From Here > http://www.apple.com/support/iphone/syncing/
You may find this information of interest...
Have a read here...
https://discussions.apple.com/message/18409815?ac_cid=ha
And See Here...
How to Use Multiple iDevices with One Computer -
Problems with navigation when deploy application on WebLogic 10.3
Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this button then the first form (where I could see all records) is empty - the create operation worked, but navigation to second page not. Navigation rules is in adf task flow. In default server all works correct. Where is the problem?
Maybe when I deploy my application I need specialy deploy adf task flow or somewhere write something? If so, then can you explain me where? Any suggestions what to do.
Best regards!I have in log:
2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
l setLifecycleContextBuilder
WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
lize
INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
sourceProvider <init>
INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
trap add
INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
tchCredential
WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
mains\base_domain\config\oracle.
2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
Exception
WARNING: Incomplete connection information
Edited by: Debuger on Mar 26, 2009 11:18 AM -
When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen. I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS. I'm using a Mac with Mountain Lion OS. Any solutions?
Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
LN -
Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?
Some progess I see. To be honest, i would not waste your time with trying to connect using wireless.
You are likely to get poor connections and dropping out.
If its working using a cable, then there is no need to bother with giving me the network settings, bu see how it goes, because sometimes giving the TV a static IP address can give better results.
There is an example of a couple of powerline adapters on the diagram below. Just ignore the network switch unless you want to connect other devices which are near to the TV.
http://forumhelp.dyndns.info/networking/powerline3.jpg
I will monitor the subject line of this thread, should you want to post any more information.
There are some useful help pages here, for BT Broadband customers only, on my personal website.
BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones. -
I have a problem with Safari: when it opens and I go on google, it opens a page that says: please update internet explorer!
What should I do?It's a scam. Have a look at this thread:
https://discussions.apple.com/thread/6058094?tstart=0 -
I have a problem with IDVD when I have completed a movie and set it up with menus etc I cannot operate the burn button so I cannot make a DVD.
Hi
Can You
Go up to File Menu in iDVD - and here down to
Save as a DiskImage
If this works - You can burn Your DVD in another way via Disk Util tool
Yours Bengt W -
Strange problem with SQLPLUS when client and server on the same box
Hi,
I have the problem with SQLPLUS when clinet and server on the same machine.
With client and server on the same machine i am running the command
sqlplus -l username/password@connect_identifier as SYSDBA.
With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
How to get rid of this behaviour. Is there any way to do this.
I am running this command by creating a process in C#
Edited by: user11000236 on Jun 16, 2009 10:31 AMuser11000236 wrote:
Thanks for the info.
How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
This is explainted in the above mentioned link:
Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication. -
CS 4 Dynamic Link to Encore doesn't work most of the time. Encore stops operating after opening and periodically Premier Pro stops working. I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's. Is there a way around this? Is there a patch to correct it?
To build CD's???
What problem does Encore have with DL?
If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore. -
Problem with MAIL, when select names that start with "E" the mail freeze. Can't fix it.
Now I checked the materials that I got from AT&T Yahoo and
port 25 is used as the outgoing mail port, 110 for incoming.
This is for the POP type account provided by AT&T, not necessarily for an email account and SMTP server not provided by AT&T.
Sounds like AT&T blocks using an SMTP server that is outside of their network or not provided by AT&T on Port 25.
Try the following first.
Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings button below for the .Mac SMTP server.
Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed setting.
If this doesn't work, we will go to plan B. -
Problem with Emailing the Internal table data as an excel attachment
Hi Friends,
I am facing problem with Emailing an internal table data as an excel file. I am using standard function module "SO_NEW_DOCUMENT_ATT_SEND_API1" which is using SOLI structure can have record with 255 character length. But my Internal table having each record means after concatenating all the fields it is going to be morethan 450 characters. so i t is not displaying all the data in excel file.
Can somebody help me if there is any other function module or any other way that i need to follow.
thanks for help
venkat.You must use the the :
CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB as a field seperator and
CL_ABAP_CHAR_UTILITIES=>CR_LF as a record seperator.
Check this example:
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
Regards,
Naimesh Patel
Maybe you are looking for
-
Can't open a .pdf in IE or FireFox
Every time I try to open a .pdf document in either of the above browers, I get a message saying something like, 'the Adobe Acrobat/Reader that is running cannot be used to view pdf files in a web browser. Please exit Adobe Acrobat/Reader and exit yo
-
My phone just started doing this, it just says searching instead of showing bars. Cannot make or recieve calls or texts. I have reset the network settings and the phone itself. I have called the *228 and it said it reprogramed my phone. walked awa
-
5700 Dot, E3 Power Cube, Thermal
Hi there. Im a new (happy?) buyer of a MSI 5700 TD-128. I dont know why, but my card seems not to monitor the GPU temp and FAN RPM, not even with the 3D Turbo Experience application from MSI. Is there a 3rd. party program to monitor these stuff? Or m
-
So I downloaded from the Microsoft site an auto log in file that way I wouldn't have to enter a password in for 8.1. Had I known that upgrading to 8.1 would force me to input a password then I would not have bothered with the irritant. Thing is somet
-
How to apply style with grep script to finding question mark
app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "\?"; //app.findGrepPreferences.SpecialCharacters = SpecialCharacters.QUESTION_MARK; app.findGrepPreferences.appliedParagraphStyle = "myParS"; app.ac