[FIX] dates and timezones : apply the user timezone on timestamps retrieved from database in tikilib.
[FIX] dates and timezones : apply the user timezone on timestamps retrieved from database in tikilib.

Since all timestamps are now in GMT timezone in database, we need to convert those timestamps using the user timezone (probably in every case) before using it (displaying, comparing, ranking, ...). This is something that is not done in smarty functions anymore because it should be done only once, just after retrieving the timestamp from database. Note that this has to be used only when a select query is done (nothing should be modified when updating or inserting values in database).

This fix concerned tables are 'tiki_pages' and 'tiki_page_drafts'. There is probably more fix to commit for other tables that includes timestamps.

In order to easily convert every timestamp fields in each function that retrieve this kind of data in tikilib, a new function 'page_info_UTC_to_display()' has been added and will take care of the timestamp field list.


git-svn-id: 3d5924c06390d9880c3f6dc8614bfed48a70bf89@7738 b456876b-0849-0410-b77d-98878d47e9d5

tikiorg/tiki,changi67/tiki,changi67/tiki,oregional/tiki,changi67/tiki,tikiorg/tiki,oregional/tiki,tikiorg/tiki,changi67/tiki,oregional/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki