[TYPO3-dev] ADOdb extended dates prototype

David Bruehlmeier typo3 at bruehlmeier.com
Tue May 22 11:25:34 CEST 2007


Hi Christoph,

sorry I didn't respond earlier...

> Here is my idea. To be consistent with the approach that would work for 
> extensions and server side dates, namely ADOdb time, I believe it needs 
> to be used when entering dates, too. Client side would be faster, but 
> ultimately there could be problems with early dates due to the switch to 
> the Gregorian calendar and maybe others.

+1
Having both a client- and a server-side conversion doesn't make sense. 
ADOdb is a proven solution and handles all kinds of 'specialities, so 
let's use it for all conversion.

> My proposal is this: The reason it's so slow is the inclusion of 
> init.php. I can work around that and make it fast. Benchmarks showed 
> that requests without including init.php were about 200ms for the first, 
> and 20ms for subsequent requests, which is very reasonable compared to 
> over 1000ms it takes now for each request.

Sounds reasonable.

> My solution would also take care of timezones in that it would be 
> converted to GMT during transmit and back to server time before saving, 
> similar to the patch you linked to, if I understand correctly. I would 
> take the timezone from the client, getting rid of the config field, 
> while at the same time keeping the possibility to configure your own 
> desired date format for date entry and output in all the forms, 
> consistently. That has been a complaint I have heard before from clients 
> and it really doesn't add any problems.

+1

Greetings,
Dave




More information about the TYPO3-dev mailing list