On every timestamp the code displays, you can see "yesterday" or "today" if the post was recent enough. This should be displayed relative to your selected timezone. Due to a bug in the display code, it was easily possible to have posts show "today" when the time clearly was not possible yet, "yesterday" posts would actually be up to 3 days old, and things that were actually posted on the same day would simply show the current date. It's not always easy to spot either since timezones are involved. Turned out to be a really easy fix, though very subtle:
Index: C:/Code Repositories/QSFP Branch/qsfportal/global.php
===================================================================
--- C:/Code Repositories/QSFP Branch/qsfportal/global.php (revision 341)
+++ C:/Code Repositories/QSFP Branch/qsfportal/global.php (revision 342)
@@ -471,10 +471,10 @@
// Use the user's chosen GMT offset, ie: GMT-8 = Pacific time, US
$tz_offset = $this->user['user_timezone'] * 3600;
$time = $gmt_time + $tz_offset;
- $current_tz_time = $this->time + $tz_offset;
+ $current_tz_time = $this->time;
// DST adjustment if needed. Yes, it needs to know the current time so it can trick old posts into looking right.
- if( date( "I", $this->time ) == 1 ) {
+ if( date( "I", $current_tz_time ) == 1 ) {
$time += 3600;
}
This will be fixed with the 1.4.5 code release and should put the issue of timezones and displays to rest.
.........................
PDNS-Admin | Sandbox | Arthmoor MUD Hosting Services | The Truth About Medievia: A Saga of Code Theft.
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984