[Phpslash-trackers] [ phpslash-Patches-580757 ] Site-wide date formats and TIMEZONES!
Brought to you by:
joestewart,
nhruby
From: <no...@so...> - 2002-09-03 15:27:38
|
Patches item #580757, was opened at 2002-07-12 14:44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=310566&aid=580757&group_id=10566 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Matthew Leingang (sympleko) Assigned to: Nobody/Anonymous (nobody) Summary: Site-wide date formats and TIMEZONES! Initial Comment: This is a rather large patch containing what I did on RFE ID #513262 (Consistent Date/Time Formatting). New functions psl_dateLong, psl_dateShort, psl_dateTime, etc., which convert timestamps to formatted strings uniformly. All dates and times (that I could find) are generated by these functions. The format strings is localized in the files locale/<locale>.LC_TIME.php. Also, there are classes giving several implementations of time zones. Using a global $_TZ array, there are global functions tz_strftime, etc., which adjust for the current time zone. There are two scripts and the templates to generate their html: tz_bench.php: Test implementations of time zone classes for accuracy and speed (I'm not recommending that this be added to CVS; it's just a nice demo :-) tz_select.php: generate and process a form to select the user's favorite time zone. ---------------------------------------------------------------------- Comment By: Joe Stewart (joestewart) Date: 2002-09-03 10:27 Message: Logged In: YES user_id=77269 This patch has been applied to the CVS. Please update your copy of PHPSlash, or wait for the next release. ---------------------------------------------------------------------- Comment By: Matthew Leingang (sympleko) Date: 2002-08-09 09:19 Message: Logged In: YES user_id=511593 Well, I did post the patch of existing files, but I did not include the new files. Here they are. Thanks to Lars for pointing this out! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=310566&aid=580757&group_id=10566 |