[TYPO3-core] RFC #7626: Date/time handling is completely broken in 4.2

Steffen Kamper steffen at sk-typo3.de
Sun Feb 24 13:51:49 CET 2008


Hi,

according to my investigations i like to show a patch for my supposed time 
handling

what i did:
* created a js var that has servers timezone offset
* on change of datetime field calculated the time of servers timezone
* removed offset in tceforms

i got fine results with my testing using
* server UTC +1
* client UTC +3

entered 17:00
after lost focus calculated to 15:00

please test it.

vg  Steffen 


begin 666 time_bug_fix_7626.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7W1C969O<FUS+G!H< T*/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/0T*+2TM('0S;&EB+V-L87-S+G0S;&EB7W1C969O
M<FUS+G!H< DH<F5V:7-I;VX@,S(W."D-"BLK*R!T,VQI8B]C;&%S<RYT,VQI
M8E]T8V5F;W)M<RYP:' )*'=O<FMI;F<@8V]P>2D-"D! ("TQ,3$T+#$Q("LQ
M,3$T+#<@0$ -"B )"0DD8T]N0VQI8VL@/2 G='EP;S-F;W)M+F9I96QD1V5T
M*"<N)'!A<F%M<TQI<W0N)RPQ+%PG)RXD8VAE8VM3971686QU92XG7"<I.R<N
M:6UP;&]D92 at G)RPD4$%;)V9I96QD0VAA;F=E1G5N8R==*3L*( D)"21I=&5M
M+CTG/&EN<'5T('1Y<&4](F-H96-K8F]X(B<N)'1H:7,M/FEN<V5R=$1E9E-T
M>6QE*"=C:&5C:R<I+B<@;F%M93TB)RXD4$%;)VET96U&;W)M16Q.86UE)UTN
M)U]C8B(@;VYC;&EC:STB)RYH=&UL<W!E8VEA;&-H87)S*"1C3VY#;&EC:RDN
M)R(@+SXG.PH@"0E]"BT)"6EF*"AI;E]A<G)A>2 at G9&%T92<L)&5V86Q,:7-T
M*2!\?"!I;E]A<G)A>2 at G9&%T971I;64G+"1E=F%L3&ES="DI("8F("1005LG
M:71E;49O<FU%;%9A;'5E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$871E("T@*'1H951I;64N9V5T5&EM97IO;F5/9F9S970H*2 K('1O<"YS
M97)V97)4:6UE>F]N94]F9G-E="DJ-C I*C$P,# I.PH@"0D)"0ET:&ES+FQA
M<W1$871E(#T@=&AI<RYG9714:6UE<W1A;7 H=&AE5&EM92D["B )"0E]"B )
M"0ET:&ES+FQA<W1$871E*SUA9&0J,C0J-C J-C ["D! ("TT,#0L-R K-# T
M+#<@0$ -"B )"0D)"79A<B!T:&54:6UE(#T@;F5W($1A=&4H=&AI<RYG9719
M96%R*'1O9&%Y*2P@=&]D87DN9V5T551#36]N=&@H*2P@=&]D87DN9V5T551#
M1&%T92 at I+"!H;W5R+"!M:6XL("@H='EP93T](G1I;65S96,B*3]S96,Z,"DI
M.PH@"B )"0D)"71H:7,N;&%S=%1I;64@/2!T:&ES+F=E=%1I;65S=&%M<"AT
M:&54:6UE*3L*+0D)"0D)=&AE5&EM92YS9714:6UE*"AT:&ES+FQA<W14:6UE
M("T@=&AE5&EM92YG9714:6UE>F]N94]F9G-E="@I*C8P*2HQ,# P*3L**PD)
M"0D)=&AE5&EM92YS9714:6UE*"AT:&ES+FQA<W14:6UE("T@*'1H951I;64N
M9V5T5&EM97IO;F5/9F9S970H*2 K('1O<"YS97)V97)4:6UE>F]N94]F9G-E
M="DJ-C I*C$P,# I.PH@"0D)"0ET:&ES+FQA<W14:6UE(#T@=&AI<RYG9714
M:6UE*'1H951I;64I.PH@"0D)?0H@"0D)=&AI<RYL87-T5&EM92L]861D*C8P
M.PI);F1E>#H@='EP;S,O8F%C:V5N9"YP:' -"CT]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T-"BTM+2!T>7!O,R]B86-K96YD+G!H< DH<F5V:7-I;VX@,S(W."D-
M"BLK*R!T>7!O,R]B86-K96YD+G!H< DH=V]R:VEN9R!C;W!Y*0T*0$ @+3,P
M,RPX("LS,#,L,38 at 0$ -"B )"6EF*"1'3$]"04Q36R="15]54T52)UTM/G5C
M6R=N;TUE;G5-;V1E)UT@/3T]("=I8V]N<R<I('L*( D)"21M96YU1G)A;65.
M86UE(#T@)W1O<&UE;G5&<F%M92<["B )"7T*+0HK"0D**PD)"2\O8V%L8W5L
M871E(%-E<G9E<G, at 5&EM97IO;F4**PD))&0@/2!D871E*"=/)RD["BL)"21M
M:6YU=&5S(#T@<W5B<W1R*"1D+#$L,BDJ-C @*R!S=6)S='(H)&0L,RPR*3L*
M*PD))'-E<G9E<E1I;65Z;VYE3V9F<V5T(#T@:6YT=F%L*'-U8G-T<B at D9"PP
M+#$I("L@)&UI;G5T97,I.PHK"0D*"0DD=&AI<RT^:G, at +CT@)PHK"0DO+R!T
M:&ES(&ES('1H92!T:6UE>F]N92!O9F9S970@;V8@=&AE('-E<G9E<@HK"79A
M<B!S97)V97)4:6UE>F]N94]F9G-E=" ]("<@+B D<V5R=F5R5&EM97IO;F5/
M9F9S970 at +B G.PHK"0D*( DO*BH*( D@*B!&=6YC=&EO;B!S:6UI;&%R('1O
=(%!(4',@(')A=W5R;&5N8V]D92 at I.PH@"2 J+PH`
`
end



More information about the TYPO3-team-core mailing list