[TYPO3-core] RFC #7626: Date/time handling is completely broken in 4.2
Steffen Kamper
steffen at sk-typo3.de
Sun Feb 24 14:47:20 CET 2008
"Steffen Kamper" <steffen at sk-typo3.de> schrieb im Newsbeitrag
news:mailman.1.1203858793.4788.typo3-team-core at lists.netfielders.de...
>
>
> there is one problem left. When you enter date in a datefield in my case
> the
> date moves backward one day, because it's subtract 2 hours from midnight.
> I
> will look how to prevent any time conversion with date(only) fields.
>
> vg Steffen
>
i solved this problem with attached patch.
I completely removed UTC for dates. Only with times it is used for offset
calculation.
vg Steffen
begin 666 time_bug_fix_7626_v2.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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R*'1O9&%Y*2P@=&]D
M87DN9V5T551#36]N=&@H*2P@=&]D87DN9V5T551#1&%T92 at I+"!H;W5R+"!M
M:6XL("@H='EP93T](G1I;65S96,B*3]S96,Z,"DI.PH@"B )"0D)"71H:7,N
M;&%S=%1I;64@/2!T:&ES+F=E=%1I;65S=&%M<"AT:&54:6UE*3L*+0D)"0D)
M=&AE5&EM92YS9714:6UE*"AT:&ES+FQA<W14:6UE("T@=&AE5&EM92YG9714
M:6UE>F]N94]F9G-E="@I*C8P*2HQ,# P*3L**PD)"0D)=&AE5&EM92YS9714
M:6UE*"AT:&ES+FQA<W14:6UE("T@*'1H951I;64N9V5T5&EM97IO;F5/9F9S
M970H*2 K('1O<"YS97)V97)4:6UE>F]N94]F9G-E="DJ-C I*C$P,# I.PH@
M"0D)"0ET:&ES+FQA<W14:6UE(#T@=&AI<RYG9714:6UE*'1H951I;64I.PH@
M"0D)?0H@"0D)=&AI<RYL87-T5&EM92L]861D*C8P.PI 0" M-#(R+#D@*S0Q
M.2PY($! #0H@"0D):68@*"%P87)S94EN="AV86QU92DI"7MR971U<FX@)R<[
M?0H@"0D)=F%R('1H951I;64@/2!N97<@1&%T92AP87)S94EN="AV86QU92D@
M*B Q,# P*3L*( D)"6EF("AT:&ES+E53;6]D92D)>PHM"0D)"71H95-T<FEN
M9R ]("AT:&54:6UE+F=E=%540TUO;G1H*"DK,2DK)RTG*W1H951I;64N9V5T
M551#1&%T92 at I*R<M)RMT:&ES+F=E=%EE87(H=&AE5&EM92D["BL)"0D)=&AE
M4W1R:6YG(#T@*'1H951I;64N9V5T36]N=&@H*2LQ*2LG+2<K=&AE5&EM92YG
M971$871E*"DK)RTG*W1H:7,N9V5T665A<BAT:&54:6UE*3L*( D)"7T at 96QS
M92!["BT)"0D)=&AE4W1R:6YG(#T@=&AE5&EM92YG97155$-$871E*"DK)RTG
M*RAT:&54:6UE+F=E=%540TUO;G1H*"DK,2DK)RTG*W1H:7,N9V5T665A<BAT
M:&54:6UE*3L**PD)"0ET:&53=')I;F<@/2!T:&54:6UE+F=E=$1A=&4H*2LG
M+2<K*'1H951I;64N9V5T36]N=&@H*2LQ*2LG+2<K=&AI<RYG971996%R*'1H
M951I;64I.PH@"0D)?0H@"0EB<F5A:SL*( D)8V%S92 B9&%T971I;64B. at I)
M;F1E>#H@='EP;S,O8F%C:V5N9"YP:' -"CT]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T-"BTM+2!T>7!O,R]B86-K96YD+G!H< DH<F5V:7-I;VX@,S(W."D-"BLK
M*R!T>7!O,R]B86-K96YD+G!H< DH=V]R:VEN9R!C;W!Y*0T*0$ @+3,P,RPX
M("LS,#,L,38 at 0$ -"B )"6EF*"1'3$]"04Q36R="15]54T52)UTM/G5C6R=N
M;TUE;G5-;V1E)UT@/3T]("=I8V]N<R<I('L*( D)"21M96YU1G)A;65.86UE
M(#T@)W1O<&UE;G5&<F%M92<["B )"7T*+0HK"0D**PD)"2\O8V%L8W5L871E
M(%-E<G9E<G, at 5&EM97IO;F4**PD))&0@/2!D871E*"=/)RD["BL@( D))&UI
M;G5T97,@/2!S=6)S='(H)&0L,2PR*2HV," K('-U8G-T<B at D9"PS+#(I.PHK
M(" )"21S97)V97)4:6UE>F]N94]F9G-E=" ](&EN='9A;"AS=6)S='(H)&0L
M,"PQ*2 K("1M:6YU=&5S*3L**R @"0D*( D))'1H:7,M/FIS("X]("<**PD)
M+R\@=&AI<R!I<R!T:&4@=&EM97IO;F4@;V9F<V5T(&]F('1H92!S97)V97(*
M*PEV87(@<V5R=F5R5&EM97IO;F5/9F9S970@/2 G("X@)'-E<G9E<E1I;65Z
M;VYE3V9F<V5T("X@)SL**PD)"B )+RHJ"B )("H at 1G5N8W1I;VX@<VEM:6QA
A<B!T;R!02%!S("!R87=U<FQE;F-O9&4H*3L*( D@*B\*
`
end
More information about the TYPO3-team-core
mailing list