Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4105204

DateFormat ignores setTimeZone; AppletViewer only, MST and Central (Indiana)only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1.5
    • core-libs



      Name: joT67522 Date: 01/20/98


      I reported earlier against 1.1.3 that attempting
      to set the machines time zone as the timezone for
      DateFormat class failed, always yielding PST.

      Testing again with 1.1.5, I find the problem fixed
      (YEAH!) running against Netscape 4.04. However,
      running against appletviewer (1.1.5), it is still
      broken - but only when some time zones are set on
      my NT box: MST and Central (Indiana). Other time
      zones seem to work just fine.

      Since I live in Colorado (MST) and was born in
      Indiana, I take this selective bug kinda personally. :-)

      Tom McFarland
      Hewlett-Packard, Co.



      #---------------------------------- cut here ----------------------------------
      # This is a shell archive. Remove anything before this line,
      # then unpack it by saving it in a file and typing "sh file".
      #
      # Wrapped by Tom McFarland <tommc@hptommc> on Fri Jan 16 15:56:08 1998
      #
      # This archive contains:
      # TestDateFormat.zip
      #
      # Files are compressed using compress(1).

      LANG=""; export LANG
      PATH=/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:$PATH; export PATH


      rm -f /tmp/uud$$
      (echo "begin 666 /tmp/uud$$\n#;VL*n#6%@x\n \nend" | uudecode) >/dev/null 2>&1
      if [ X"`cat /tmp/uud$$ 2>&1`" = Xok ]
      then
      unpacker=uudecode
      else
      echo Compiling unpacker for non-ascii files
      pwd=`pwd`; cd /tmp
      cat >unpack$$.c <<'EOF'
      #include <stdio.h>
      #define C (*p++ - ' ' & 077)
      main()
      {
      int n;
      char buf[128], *p, a,b;

      scanf("begin %o ", &n);
      gets(buf);

      if (freopen(buf, "w", stdout) == NULL) {
      perror(buf);
      exit(1);
      }

      while (gets(p=buf) && (n=C)) {
      while (n>0) {
      a = C;
      if (n-- > 0) putchar(a << 2 | (b=C) >> 4);
      if (n-- > 0) putchar(b << 4 | (a=C) >> 2);
      if (n-- > 0) putchar(a << 6 | C);
      }
      }
      exit(0);
      }
      EOF
      cc -o unpack$$ unpack$$.c
      rm unpack$$.c
      cd $pwd
      unpacker=/tmp/unpack$$
      fi
      rm -f /tmp/uud$$

      echo x - TestDateFormat.zip '[compressed]'
      $unpacker <<'@eof'
      begin 600 TestDateFormat.zip
      M'YV04)8,($ !@$$$ -3X@4'B!P XXN ,,&C+@,&"!JF4F4.'2!@Z98R\D=/FX
      MHXLQ;,+,F5.IRCHYVZA \.=$G!9;HD@XFH2#5!L-!92LP]:F62DHP$I XZ8HX
      M!*4E3% MJT?$AQU**B0=\6&J#P$\'#"(N8.,P0Q^Y4+IZ%:ID[9$S1[P&->MX
      MQZX]]N2UHJ7O7KXO?\9PN!&'$C K KZ8@%=%P#<,>," .S#@AP9\R8 ],T JX
      M4)\!C@*I"E!&A*-K3+ PD81+C3 R,A)=RZ++$J% ZY)P 6*-B(!5)DQ &C?&X
      M4ZD-3-QHPB2LA2T+^/ 9V/*-C#P+DV[E4-9FP3I<P\@-,?$A"SX-=UJP$S=AX
      M01D^9L(\6&/!5[%C%CR(F[*@ J\WX43@S2SP=.!-+5 <<X %#L#QC"#+6#,$X
      M)2SP8(8XX7002"[LJ.-,*/P480$/Z5RSP"XZT-&/'E& ,(<J;J1QS0J4=#-"X
      M/2C 4T$&QLRRRAX"W"!+*=( TL<)<)!RBB*]K*!%#]44TD0JU=@!@0=)-'&)X
      M/-G\,TX/F[2C!3D3=($- KR P((<RC #B#U^H+#! :Y,PX(=:V3@!ABXG%*/X
      M%:V8(H0B/OR@3"?"L, (-)<HP48N/@@C@P[&5,,.$)MP,PTB@_9#Q1FQE - X
      M/+NX\HXZ-02"C1%0-#;)!H%\0XTTU^PAS1K1Y,'&'$L PXT>ZJ!BB!W)D !#X
      M+^/HHTX0ZZ#Q12%EY/).)$^HPX,> J03R0C^O,#/%.=L @$FBIAARPE#7#('X
      M%%K,<0,:A3BBC1TYC$-%%C74\0,!3<##BC@6'#,!+,L<H(P=6H2!"A]M7)&,X
      M&F?T LPKV]0@AQ:U=&-*"[#(P(XT/" @1 _H3'!)(X;(LXH %]C30SH\6 #X
      M.@*<, (>&,PPBP;*G-"-"\GD8LT**42Q1AY>U""/)JZL@@HN4A#0RA":9..)X
      M(6=$<XTFK%110S;RH.,'(P<,@80=L;1! P^E+'"/"$;T\TD!7(!A!CI)E$#%X
      M,X\ 8@(,^H10RB5R4$.&$_/PPLDR:3 3R"7JT +,#$]8$$(UD+CR# @T5.).X
      M)3@$(<8W(600"C>%G"%**L.T\=LFPH@RC0L;['(,(0[H4HH8A5@S!0<@*."-X
      M$.!\T (FB/S 3AQ:S!#!#XS@@P,!OAS3@2@;T*'/(6X\$L$_[1 P225TL-""X
      M#IATDTPGP*A"!R0Z&&'"!<_\,$PQ8[!PCA@Q2.)"!V.(P3U.8(E/A$,.&[@"X
      M$K3 CB2< E6< (8K""-<72 %-D8A#\R80,OI&$,KFC$%7: B1P80PG?2 ,KX
      MUD$+'+"##/]P0C$0P(T3Z*$1-L@!#)JPA!X4H@#, (81-) #9H3#!N:(A2$8X
      MP %I^$,):]@"* PAAE=TH@G$$(4=V,&/#V#B#6-(P1,R8 4IF$$9;!A#(,JPX
      M"7*L@ 3WF 4ITF$ ."3"%Q"X1 P640(6C$,$6;#&%P1 "R)P 0; R(4#3+&/X
      M:X@C$M(@@3YR$(\8\"$> @C(0# " (2D8B$D$(0Z)G %5Q@$ /TXY01.J1&.X
      M> 0D(B&)2=! AS:PH0J/Z(8"A $#!A3B'04@'3L"P T@\"(2;@ %'600!E%<X
      MH!?QD $N8&$!>QSA$BGP12_:H0X(A .$I!'.> @ @74(06SJ(<2*)"/(.BAX
      M"F>H@CDR@ (-9(,.-4 "&710#UL4P0 1.$0G!B&.0OC "^7H1BJD808"7($5X
      M"8 #!C0@CE[@(A]]P XHG$%2AC!&_,XQRWR0 ,<."("P%@&%5@QC2Y(PF]3X
      M6(,3;I$$<;SA +3 AA .T8)2E, .]2!$#8(Q@4TD(P=5H$ 9X/$(%,C"&G!XX
      MPS<6,()YH,$1&A !,]IQ@U8LX@.>\ < -$F04R+$8B\8033LL(,UW"( &2& X
      M05:9D8UTY",A&4E)Z. "-83!#F&HQ!2:\(9M]+(7%T#''T# ATQ(HPQN6(0'X
      M!M$!0YBA'QA0A 70( =U-*$6F2!")T20 0ET@A4ML,<WCI ,.; #!,90A#:,X
      M(())/.$=/9"$++1P!6M$@!?(: 0S$O /*/A!!CGP@11Z 0IN.( 8JE#".,* X
      M"Q.48@RPR,43GA &1W@"'!<X!Q"V(00U\,,<T<!#$=0P""@H00A8P,(M+$$$X
      M9; @&!J 10V\5HA65*$?70M (2SAC2-((@6C>(4(,( -$FA"&L-X!!H$X(U'X
      M/ ( ("!'*%#1!7Q\@ATB2,,AOA"+8H#B!H8H0BOJD(MA, ,9!4C#$]Q@ 1!,X
      M P'AN,4*C% ')B2#&<90A00H$04"B($25,B'+A91AP*D@R\.,, M4L "64A@X
      M%G&P03\RT0@3M,,0L F',*1 A_5-P0EW* YEL (;[BA$2=(@P(HT MJL,,<X
      MX8B##]Q!CQVXPA;4"((J<J&%!TBC+MSXPB/" 0(8 .$;3KC&&&;P RV$ !]7X
      M> (N_"&.4!"C$*RH00!BP0!>9&$0W,"!+"(P#4;P Q3@X$0>!)&*$QA@$7:(X
      M0#=L0 4QT $+V3B#/>AQ!D[HX1M,^ (9YE$%3GQB"$-H1BHH$(TJT$$' BA'X
      M" ;QBAZ,H@D!$$$SXO %4?0 !Q]0 1J6T8)M3 ;%:@!,_YQ SY8 !9_P, *X
      MDM&%"ES#"598017P@ 5[.*($7U@&-#RQA%6T8@+QN,$?K"$+?'0C&XV A#22X
      MT08YY.(>%7!V/.;Q!39L00V \ (GZN""?.3C $)@ *PDF$*(0A#H&(1"ABX
      M$0!P\I2G! $ ;!$(H+?RKK#4JTE0HI)U+4'F-#<K #[)$%&2TI0&2>5<@7Y*X
      MN J=Z**8" "._LJ\RI*OM+1ES&?N<ZFC5:UL=2M<QRY7 -"5ZUX?>B "47>RX
      8XS66>^WK7\,0D +TW" 3F0@Q3IF&PP, X
                                                                   X
      end
      @eof
      uncompress <TestDateFormat.zip >/tmp/compress$$
      mv /tmp/compress$$ TestDateFormat.zip

      chmod 640 TestDateFormat.zip

      rm -f /tmp/unpack$$
      exit 0

      (Review ID: 23517)
      ======================================================================

            aliusunw Alan Liu (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: