GregorianCalendar with local timezone but no DST

I need to use the local time but I don't want to use the Daylight Savings Time (DST) rule
GregorianCalendar oTime = new GregorianCalendar( nFromYear, nFromMonth, nCol );
oTime.set( Calendar.DST_OFFSET, 0 );
oTime.clear( Calendar.HOUR );
oTime.clear( Calendar.MINUTE );
oTime.clear( Calendar.SECOND );
oTime.clear( Calendar.MILLISECOND );
oTime.add( Calendar.MINUTE, nRow * 15 );
This code still calculates DST.
Is there a way to use the local timezone but disable the DST???
There must be.
I've try useing the SimpleTimeZone object and setting setDSTSavings(int millisSavedDuringDST) to 0
This only gave me an error.
If there is anyone who know the proper way to do this your help would be welcomed.
Thank you.
OUTPUT
nRow = 7
Creating new calendar with ( nFromYear= 2002, nFromMonth= 3, day= 7,0,0,0)
Adding minutes 105
oCurTime= Apr 7, 2002 1:45:00 AM
nFrom= 1 should be 0 or 1 (-1 Less; 0 Equal; 1 greater )
nTo = -1 should be -1 or 0
1 FromTime : 2 oTime : 3 oToTime
Apr 7, 2002 12:00:00 AM
04-07-2002 1:45:00
Apr 7, 2002 11:59:00 PM
bSel = true
oHT.put( new Integer( 707), true )
^^^^^^^^^^^^^^^^^^
nRow = 8
Creating new calendar with ( nFromYear= 2002, nFromMonth= 3, day= 7,0,0,0)
Adding minutes 120
oCurTime= Apr 7, 2002 3:00:00 AM
nFrom= 1 should be 0 or 1 (-1 Less; 0 Equal; 1 greater )
nTo = -1 should be -1 or 0
1 FromTime : 2 oTime : 3 oToTime
Apr 7, 2002 12:00:00 AM
04-07-2002 3:00:00
Apr 7, 2002 11:59:00 PM
bSel = true
oHT.put( new Integer( 807), true )
^^^^^^^^^^^^^^^^^^

snip form API
For a time zone that does not use daylight saving time, do not use this constructor; instead you should use SimpleTimeZone(rawOffset, ID).
This doesn't seem to work either.
It's still adjusting for DST
GregorianCalendar oTime = new GregorianCalendar( nFromYear, nFromMonth, nCol );
java.util.SimpleTimeZone oTZwithNoDST = new java.util.SimpleTimeZone(oTime.getTimeZone().getRawOffset(), oTime.getTimeZone().getID() );
oTime.setTimeZone( oTZwithNoDST );
oTime.clear( Calendar.HOUR );
oTime.clear( Calendar.MINUTE );
oTime.clear( Calendar.SECOND );
oTime.clear( Calendar.MILLISECOND );
oTime.add( Calendar.MINUTE, nRow * 15 );
OUTPUT
nRow = 7
Creating new calendar with ( nFromYear= 2002, nFromMonth= 3, day= 7,0,0,0)
Adding minutes 105
oCurTime= Apr 7, 2002 1:45:00 AM
nFrom= 1 should be 0 or 1 (-1 Less; 0 Equal; 1 greater )
nTo = -1 should be -1 or 0
1 FromTime : 2 oTime : 3 oToTime
Apr 7, 2002 12:00:00 AM
04-07-2002 1:45:00
Apr 7, 2002 11:59:00 PM
bSel = true
oHT.put( new Integer( 707), true )
^^^^^^^^^^^^^^^^^^
nRow = 8
Creating new calendar with ( nFromYear= 2002, nFromMonth= 3, day= 7,0,0,0)
Adding minutes 120
oCurTime= Apr 7, 2002 3:00:00 AM
nFrom= 1 should be 0 or 1 (-1 Less; 0 Equal; 1 greater )
nTo = -1 should be -1 or 0
1 FromTime : 2 oTime : 3 oToTime
Apr 7, 2002 12:00:00 AM
04-07-2002 3:00:00
Apr 7, 2002 11:59:00 PM
bSel = true
oHT.put( new Integer( 807), true )
^^^^^^^^^^^^^^^^^^
************************

Similar Messages

  • Is possible to import the TR using TP.EXE with local system user

    Hi ,
    Currently I am trying to import the TR using the TP.exe. Could please let me know is mandatory to use <SID>adm user. If yes could please let me know the procedures.
    Because I try with local user but it was failed. Even though  I set same environment variable (Both User and System).
    Regards,
    Vivek

    Hi ,
    Please find the log below
    I am using the correct commend. if i try in SIDADM user it working fine.when i try with local user is not working.So i was confused. 
    This is tp version 372.04.40 (release 701, unicode enabled)
    TRACE-INFO: 1:  [dev trc     ,00000]  Thu May 12 00:09:50 2011                                     1042  0.001042
    TRACE-INFO: 2:  [dev trc     ,00000]  load shared library (dbsdbslib.dll), hdl 0, addr 0000000186C80000
    TRACE-INFO: 3:                                                                                5  0.001047
    TRACE-INFO: 4:  [dev trc     ,00000]      using "E:\usr\sap\EC6\SYS\exe\uc\NTAMD64\dbsdbslib.dll"
    TRACE-INFO: 5:                                                                                5  0.001052
    TRACE-INFO: 6:  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                         81  0.001133
    TRACE-INFO: 7:  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=-1,command=39,arg_p=0000000000000000)
    TRACE-INFO: 8:                                                                                8  0.001141
    TRACE-INFO: 9:  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                          8  0.001149
    TRACE-INFO: 10:  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=-1,command=10,arg_p=000000000202EBE0)
    TRACE-INFO: 11:                                                                                8  0.001157
    TRACE-INFO: 12:  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                          4  0.001161
    TRACE-INFO: 13:  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=-1,command=10,arg_p=0000000140E5A1E8)
    TRACE-INFO: 14:                                                                                15  0.001176
    TRACE-INFO: 15:  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                          5  0.001181
    TRACE-INFO: 16:  [dev trc     ,00000]  { DbSlSdbConnect(con_info_p=0000000000000000)                  18  0.001199
    TRACE-INFO: 17:  [dev trc     ,00000]  DBSDBSLIB : version 700.08, patch 0.024 (Make PL 0.32)         18  0.001217
    TRACE-INFO: 18:  [dev trc     ,00000]  MAXDB shared library (dbsdbslib) patchlevels (last 10)          7  0.001224
    TRACE-INFO: 19:  [dev trc     ,00000]    (0.024) Default value for max. input variables is 2000 (note 655018)
    TRACE-INFO: 20:                                                                                9  0.001233
    TRACE-INFO: 21:  [dev trc     ,00000]    (0.024) Profile parameter to define max. input variables (note 655018)
    TRACE-INFO: 22:                                                                                9  0.001242
    TRACE-INFO: 23:  [dev trc     ,00000]    (0.024) Switch SQLMODE after CREATE INDEX SERIAL (note 1267841)
    TRACE-INFO: 24:                                                                                8  0.001250
    TRACE-INFO: 25:  [dev trc     ,00000]    (0.024) Input parameters for SQL statements increased (note 655018)
    TRACE-INFO: 26:                                                                                7  0.001257
    TRACE-INFO: 27:  [dev trc     ,00000]    (0.018) Create index serial for MaxDB 7.6 (note 1267841)
    TRACE-INFO: 28:                                                                                8  0.001265
    TRACE-INFO: 29:  [dev trc     ,00000]    (0.018) More trace in case of packed to string conversion error (note 1262799)
    TRACE-INFO: 30:                                                                                13  0.001278
    TRACE-INFO: 31:  [dev trc     ,00000]    (0.016) R3trans export aborts with signal 6 (note 1262245)
    TRACE-INFO: 32:                                                                                7  0.001285
    TRACE-INFO: 33:  [dev trc     ,00000]    (0.009) IA64 alignment errors (note 1245982)                  7  0.001292
    TRACE-INFO: 34:  [dev trc     ,00000]    (0.007) Support DB-Type 'SAP DB' by UPDSTAT (note 1225668)
    TRACE-INFO: 35:                                                                                7  0.001299
    TRACE-INFO: 36:  [dev trc     ,00000]                                                                  4  0.001303
    TRACE-INFO: 37:  [dev trc     ,00000]   -> init()                                                      6  0.001309
    TRACE-INFO: 38:  [dev trc     ,00000]   -> sdb_malloc(size=18) : 0000000002810EB0 (34 bytes allocated)
    TRACE-INFO: 39:                                                                                18  0.001327
    TRACE-INFO: 40:  [dev trc     ,00000]    STATEMENT_CACHE_SIZE = 1000                                  46  0.001373
    TRACE-INFO: 41:  [dev trc     ,00000]   -> sdb_malloc(size=152000) : 00000000028B9FA0 (152050 bytes allocated)
    TRACE-INFO: 42:                                                                                16  0.001389
    TRACE-INFO: 43:  [dev trc     ,00000]   -> sdb_malloc(size=656000) : 0000000002C200B0 (808066 bytes allocated)
    TRACE-INFO: 44:                                                                                13  0.001402
    TRACE-INFO: 45:  [dev trc     ,00000]   -> sdb_malloc(size=288000) : 0000000002CC10B0 (1096082 bytes allocated)
    TRACE-INFO: 46:                                                                                11  0.001413
    TRACE-INFO: 47:  [dev trc     ,00000]   -> sdb_malloc(size=16144) : 0000000002D080B0 (1112242 bytes allocated)
    TRACE-INFO: 48:                                                                                11  0.001424
    TRACE-INFO: 49:  [dev trc     ,00000]   -> sdb_malloc(size=32048) : 0000000002D0C020 (1144306 bytes allocated)
    TRACE-INFO: 50:                                                                                11  0.001435
    TRACE-INFO: 51:  [dev trc     ,00000]   -> loadClientRuntime()                                       358  0.001793
    TRACE-INFO: 52:  [dev trc     ,00000]  Loading SQLDBC client runtime ...                               7  0.001800
    TRACE-INFO: 53:  [dev trc     ,00000]  SQLDBC SDK Version : SQLDBC.H  7.6.0    BUILD 007-123-091-175
    TRACE-INFO: 54:                                                                                339  0.002139
    TRACE-INFO: 55:  [dev trc     ,00000]  SQLDBC Library Version : libSQLDBC 7.6.5    BUILD 011-123-196-300
    TRACE-INFO: 56:                                                                                8  0.002147
    TRACE-INFO: 57:  [dev trc     ,00000]  SQLDBC client runtime is MaxDB 7.6.5.011 CL 196300             21  0.002168
    Regards,
    vivek

  • Display Browser Local Timezone

    Hello:
    We are using Jdeveloper 11.1.2.3 and Oracle database 11.2.0.2 on RedHat 5.8 and we have users all over the world.
    In our database, we have table columns defined as data type: TimeStamp with Local Timezone.
    In a browser window in ADF, we want these table columns to automatically adjust the time to be in browser local timezone.
    Is there any way to accomplish this?
    Thanks

    http://brent.hmdclinical.com/2012/02/using-user-timezones-in-adf.html
    http://jobinesh.blogspot.com/2010_12_01_archive.html

  • AppV 5 slow to refresh with roaming profile (no redirects) but fast with local profile

    Hi,
    I have an issue I can't get thought out. I have an AppV5 SP3 full infra, with SMB share and local caching of packages enabled. Everything works from a functional level. However I have an issue where users with a roaming profile get a very slow AppV refresh
    during login.
    I created a few testaccounts, a few with local profile and a few with roaming profiles. For these testusers there are NO folder redirects. The only difference between them is local profile or roaming profile.
    When I login with a local-profile user initially, the AppV client rather slowly refreshes the applications and shortcuts. It generates quite some CPU load on the RDS host, but as soon as the shortcuts are placed everything is fine. When I log that user off,
    and log in again, the shortcuts are there immediately and I can immediately start the applications (Office 2010 for example). Blazing fast. Also when logging in, the refresh-UI is there for about half a second, it really flashes and it's done.
    Then with a testuser with roaming profile, the initial refresh is about the same. But when I logoff that user and login again, it's all very slow. The shortcuts are there but blank initially, it takes about 5-10 seconds to get the correct icon. It takes
    much longer before the refresh actually starts (sometimes up to 30 seconds after login), and it takes 5-10 seconds to do the refresh, with 100% cpu load on the thread AppVclient.exe is running on. Also right after loging in when the shortcuts are blank they
    don't work until they get the proper icon. WHen everything is refreshed it works all fine though. It's just painfully slow at start.
    I don't understand this. I can reproduce this every single time. Without folder redirects I don't see the difference between roaming and local profile from AppV perspective, as the roaming profile is of course copied to the server and in that sense the server
    just works with a local copy anyway.
    Anyone encountered this, and how to troubleshoot, or better fix this?

    So is the fact that there is a 5-10 second delay during refresh actually an issue? What I mean by that is - are any users comparing the local profiles with roaming profiles experience, or complaining that the delay is there?
    Roaming profiles and Folder redirection are of course very simple to configure; however for the best user experience I recommend managing profiles with a real profile management solution.
    If you have MDOP, then you'll also have access to UE-V. You've mentioned your environment is RDS, which sadly doesn't get UE-V, even though you have App-V.
    Here are some resources on UE-V + App-V and what's required when managing App-V with roaming users:
    How To Use Microsoft User Experience Virtualization With App-V Applications
    Application Publishing and Client Interaction: Roaming registry and data
    Here's also some resources on App-V performance worth looking at:
    Performance Guidance for Application Virtualization 5.0
    App-V Performance Best Practices: New Project VRC White Paper
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

  • With Time Zone Support on Calendar no longer automatically adjust to the local timezone.

    Apples support forums are riddled with Discussions about problems with being able to dicate a specific time zone for appointments. Many of these postings, as well as their corresponding solutions, are unnecessarily lenghtly when the root cause of all of this is a one very simple mistake by Apple. Right now to be able to assign a specifc timezone for an appointment using the Calendar app on the iPhone you have to have "Time Zone Support" turned on in Settings. The problem is that when you turn on this feature the Calendar app stops automatically updating the calendar to reflect the local time zone you are in. These are simply two seperate items that have no reason to be tied together. Apple could easily correct almost all of the issues people are having with this topic if it simply split this into two seperate options that users can turn on/off seprately:
    1.) Enter time zone for each appointment. YES/NO
    2.) Adjust Calendar to the local timezone. YES/NO
    It is virturally incomprehensible that Apple has not fixed this. It was clearly a mistake.

    I have this problem too and am frustrated - it's not solving no matter what i do. And now Siri is totally bonkers too on this new software update - can't even pull from my contacts when I ask her to look someone up. What the heck is going on at Apple software? Have they been hiring a bunch of arrogant, crap programmers? I am seriously thinking of not buying an iPhone again after having one for 5 years. So disappointed!!

  • How to create a GregorianCalendar with timezone information

    Hello All,
    Can any one tell me how to create a GregorianCalendar with time zone information i.e
    I have following information with me
    year
    month
    day
    hour
    minutes
    seconds
    deci-seconds
    direction from UTC "+" / "-" (in ascii notation)
    hours from UTC minutes from UTC
    How can i construct a calender out of it?

    How to construct a calendar:
    Calendar.getInstance()
    Did you consider looking at the API docs with the set() method for calendar and the field constants for the values you can set?
    Although I wonder whether it's simpler to just concatenate the data to a String and parse it to a Date instance using SimpleDateFormat.

  • Outlook Calendar items not sync with local time af...

    Im from India, which doesnt follow the DST change.
    I use PC Suite ver 7.1.30.9 with my Nokia Express Music 5310.
    My Laptop is Windows XP and Im using Outlook 2003.
    Since the DST changeover last weekend, my outlook is showing the meetings in proper local timezone as these are stored in GMT with daylight savings.
    I had my handphone synched and working fine UNTIL Nov 2nd!
    Now my handphone shows the items one hour early!! I have deleted these notes and re-added them but to no avail.
    Am I missing something here.

    Sure, here's how I recommend doing it:
    Make sure Outlook is not running (even check through Task Manager, since Connector usually makes it stick there). 
    Go to "Control Panel" (usually through the Start Menu)
    If neccesary, switch to "Classic View" ("View by: Large Icons/Small Icons" in Windows 7 and I think Vista too)
    Find the icon called "Mail" and double click it
    Click the button called "Email Accounts"
    Select any non-hotmail/non-windowslive account and click on "Set as Default"
    Select any Hotmail account and click on "Remove"
    Click on the tab "Data Files" and do the same (select any data file that isn't hotmail, set as default, remove hotmail data files)
    Click "Ok" on all windows until you get back to Control Panel.
    The reason we've done all this is so that one Connector is removed, outlook will no longer look for a Hotmail account - which will result in an error. Although it should happen automatically, it should also play nice with DST so we can't really trust it, now can we?
    Next:
    In Control Panel, look for "Programs and Features" (or "Add/Remove Programs" in XP)
    Look for "Microsoft Office Outlook Connector" and remove it by double-clicking and confirming all dialogues. 
    Restart just for good practice
    Make note that after you do this, any appointments you may have had in Outlook through Windows Live Calendar will no longer appear. I recommend copying them to your local Outlook PST first, or just manually re-creating them. Currently there's no way to do this automatically, so you need to either send them all to yourself through Email, or just manually select each appointment (sadly you can't even CTRL+A), right click, go to your PST Calendar, rigfht click anywhere and rightclick+paste.
    Hope this helps even marginally.

  • Outlook Calendar Sync Daylight Savings with different timezones 2 weeks off

    Hi,
    I sync my iPhone with Outlook 2007 on Windows XP.
    I work in PST timezone but have appointments from Germany.
    DST change in the US is 2 weeks earlier than in Germany. Within this two
    weeks my appointments from Germany are 1 hour off.
    Within this two weeks the time difference to Germany is 8 hours instead of the usual 9 hours.
    I tried to deactivate "Automatically adjust clock..." in Windows, but then all my "local" appointments are one hour off.
    Does anyone have a solution for that.
    Thanks a lot,
    Stefan

    As I was going through my Add/Remove Software list in Control Panel, I noticed that 3 XP Seurity Updates were installed immediately before my sync stopped working.
    The MS XP updates are:
    KB957097
    KB954459
    KB955069
    Could this be the problem? I have tried every recommendation in this forum and can not sync any more with Outlook (AT ALL). I was able to establish ASCII Address Book transfer...but that's it.
    Anyone else having a problem since the update installs???

  • Local timezone name

    Hi, how can i get the local timezone name?
    Date now = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ssa z");
    String todate = formatter.format(now);
    System.out.println(todate);the output would be:
    Wed, 20 Feb 2008 17:16:13PM GMT+05:30I want to display IST or PDT inplace of GMT+05:30. Is there any way? Please help.
    Thanks

    Hi,
    For many of the timezones, JRE 1.3.1 displays GMT
    offset patterns instead of local timezone name. e.g.,
    For the Zone America/Indiana/Indianapolis,
    GMT-05:00/GMT-04:00 is displayed instead of
    EST-Eastern Standard Time/EDT-Eastern Daylight Time.
    Similary, for America/Argentina/Buenos_Aires,
    GMT-03:00 is displayed instead of ART-Argentine
    Time.
    For Asia/Macau, GMT+08:00 is displayed instead of
    CST-China Standard Time.
    There are some other timezones which have this
    behavior.
    Has any of you obsered this behavior ? Any solution
    for this ?
    Thanks
    GuruI don't know about other TimeZone issues, but 1.3 is going to have problems with the new DST rules in the US.
    http://java.sun.com/developer/technicalArticles/Intl/USDST/
    http://java.sun.com/developer/technicalArticles/Intl/USDST_Faq.html
    I suggest you upgrade.

  • JDev 10.1.3.4 on Vista 64 bit not using local timezone setting

    When I try to get the current date by doing a new java.util.Date() I get the date and time but its not in my local timezone. I am in Eastern Time zone US & Canada which is GMT - 5.00. JDev for some reason keeps giving the time without subtracting 5 hours from GMT . So if now is 13.41pm its saying it is 18.41pm. I was using jdk 1.5, now using 1.6 and same problem. I tried it on Eclipse and everything works fine. I tried compiling and running a small program without JDev, using the jdks, and all is well. This must be something with Jdev.
    Anyone else have the same problem?

    Hi Thanassis,
    not sure what has changed between 10.1.3.3 and 10.1.3.4 in that area;
    but, without knowing Steve's sample in depth, I would say that the error you get in 10.1.3.4 is expected as the current row has changed in your Web Container.
    To avoid the JBO-35007, you can change the StateValidation on the iterator
        <iterator ...  StateValidation="false"/> That's the preferred option when only one (or a few) iterator causes the error
    This won't be possible however if the code is generic and involves all iterators (as in CustomViewObjectImpl).
    Then you have to change the property EnableTokenValidation on the page definition:
        <pageDefinition ...  EnableTokenValidation="false"> I'm currently working on other JBO-35007 errors reported by customers and I'm waiting for feedback from development about the Token Validation.
    I'll let you know as soon as I get more news.
    Regards,
    Didier.

  • Get user's locale / Timezone

    Hi
    I am developing Customized Calendar jsp on OCS by
    only using Calendar API(calendarlet.jar) not using Portal API.
    I have problem to get User's Locale/TimeZone that User had set in Preference.
    Calendar API Select and Display baesed on UDT
    CASE :
    " User had choice certain TimeZone in Preference
    then Calendar PKG display time based on User Selected Time-Zone
    but Customized Calender JSP displayed time on UCT "
    How can I get locale/TimeZone that user had set in Calendar Preference ?
    (Using calendar API)

    That's odd. You say that java.util.Date doesn't have
    any timezone in it, but when I insert a breakpoint
    and look at the contents of the object it has a
    sun.util.calendar.BaseCalendar and that has a
    timezone in it. Date != Calendar. A Date is just a long. Like I said, right this second, if you, I, somebody in Chicago, somebody in NY, somebody in London, and somebody in Tokyo all create a Date, the long will be the same for all of us--number of millis since 1/1/1970 00:00:00 GMT. (Note that this does NOT meant that Date "has" a TZ. It does not.) The TZ comes when a String is created from the Date.
    I always just assumed that that
    timezone must be what I was having trouble with.
    As for the DB, I assumed that mysql was timezone
    agnostic, and simply took times in and spit them out
    exactly the same. Are you saying that when I put 8AM
    in, if a person in england had that database that
    same value would read midnight? If so, is there any
    way to make it timezone neutral? It's complicating
    things.It is TZ-agnostic. You're overcomplicating it.
    // In LA, I do
    date = new Date(); // Ignore util.Date/sql.Date/Timestamp distinction for now
    S.o.p(date); // prints out Thu., 9:53 a.m. PDT
    ps = con.prepareStatement("insert into whatever values (?)");
    ps.setDate(1, date);
    ps.executeUpdate();
    // In London, you do
    rs = execute("select * from whatever"); // yeah, I'm fudging the jdbc stuff. Just lazy
    rs.next();
    date = rs.getDate(1); // this Date wraps the same long as my original in LA
    S.o.p(date); // prints out Thu., 5:53 p.m. BST or whatever
    sdf = new SimpleDateFormat(some format);
    sdf.setTimeZone(new york);
    S.o.p(sdf.format(date)); // prints Thu., 12:53 p.m. EDTThe DB stores "N millis since the epoch", or something equivalent. My LA Java and your London Java read that value and interpret it as the same point in time. When we print it, it converts to the appropriate TZ.

  • Local timezone is ignored

    I can do whatever I want, my oracle javavm always uses datetimes as "GMT". I can even set ZONE_OFFSETS manually, set locales etc., but nothing changes.
    the easiest example is to try :
    System.out.println(new Date()).toString());
    where oracles jvm incorectly outputs :
    Fri May 04 10:48:48 GMT 2001
    but suns jvm outputs :
    Fri May 04 13:04:00 CEST 2001
    When calling System.getproperty(user.timezone) suns jvm says
    "Europe/Berlin"
    and oracle reports
    "CET"
    Any help is realy appreciated
    Stefan Kost
    null

    Stefan,
    I've seem to be with the same problem you've got..
    what I've done was setting the default JVM timezone in my
    application using the SimpleTimeZone class as follow:
    TimeZone tz = TimeZone.getDefault();
    SimpleTimeZone stz = new SimpleTimeZone(tz.getRawOffset(),tz.getID());
    System.out.println("Timezone = "+stz.toString());
    stz.setRawOffset(-10800000); //put your offset in miliseconds from GMT
    TimeZone.setDefault(stz);
    Notice this will only work for the application that implements
    this piece of code.. once it is finished.. the JVM timezone returns
    to be the wrong one..
    I'm still looking for a better solution than that (maybe set the
    timezone offset for the JVM directly).. but can't find how
    if you have something else that might help.. I would appreciate it.
    Rodrigo
    please, reply to: [email protected]

  • Printing Problem with Local printer

    Hi Experts,
    My clients has installed new HP LaserJet p2015dn printer in SAP.
    I have used the  font "HELVE" in my sap script, when i take the printout with HP leser jet 1022N it gives correct printout. where as when i take the printout with local (HP LaserJet p2015dn) Printer it give the printout in unreadbale format (no spaces between each alphabet)
    I can change the font and solve this proble but i have used same font in many forms and the client wish to take the printout with newly installed printer only.
    Please help.
    Thanks
    Ganesh

    dear ganesh ,
        whn client installed new Hp lajer jet  printer , for that client dowload some text file , is is not download in computer thats y  smartforms not coming properly
    so pls contact client administrator and download all this files which is supported that new printer . thn problem will solve
    regards ,
    nikhil.

  • The Report Server page comes up on local server, but the page does not open from clients

    Hello,
    The Report Server Page opens up just fine on the local server, but page does not open up from desktops and client PCs.   SSRS is installed on a Windows Server 2008 R2 server and with SQL Server 2008 R2 SP2
    Clients are using IE 11 and they see:
    Oops! Internet Explorer could not connect to tumdv-fsql01
    How can make this site accessible from clients?
    Thanks
    Paul

    That did not work.
    What port numbers specifically does SSRS use?  I will check the firewall.
    http://100.100.100.100/CengeaReports/Pages/Folder.aspx
    When I add the IP Address and try the link again, IE says "This page can not be displayed".  When I try the Fix connection problems, IE says:
    "The website is online, but it is not responding to connection attempts."
    Paul

  • How do I download a movie to my phone?  when I click 'rent' through itunes, I get a message that there is not enough available local storage, but I can manage my local device storage usage in 'Settings'.  I have activated icloud, but this has not helped.

    How do I download a movie to my iphone 3G?  When I click 'rent' in itunes, I get a message that there is not enough available local storage, but I can manage storage on my device in 'Settings'.  I have activated icloud, but don't know how to change my storage so that I can rent and watch the movie on my phone.  thanks for any help you can give.

    I always do my Rentals with the itunes program on the computer.
    Make rental from itunes store. It will show in movies under library, DO NOT click to play it. Plug in the device to the computer. Click the name of the device on left. Click on movies. There is an  option to copy to the device. Sync. obviously you still need space on ipad to put rental but you can have it take computers hard drive space until you need it.

Maybe you are looking for