Changeset 3376450
- Timestamp:
- 10/10/2025 07:37:48 PM (5 months ago)
- Location:
- plaintracker/trunk
- Files:
-
- 3 edited
-
plaintracker.php (modified) (1 diff)
-
ptr3/_/time/Time.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plaintracker/trunk/plaintracker.php
r3371968 r3376450 4 4 Plugin URI: https://www.plaintracker.net/ 5 5 Description: A time clock plugin. Workers clock in and out, managers keep track of their time. 6 Version: 3.0. 36 Version: 3.0.4 7 7 Author: plainware.com 8 8 Author URI: https://www.plainware.com/ -
plaintracker/trunk/ptr3/_/time/Time.php
r3261705 r3376450 325 325 326 326 $tz = $this->getTimezone(); 327 $tz = new \DateTimeZone( $tz ); 328 $t = new \DateTime( 'now', $tz ); 329 $ret = static::_convert( $t ); 327 328 // weird stuff: Etc/GMT timezones are reversed so Etc/GMT+1 is actually Etc/GMT-1 329 $prfx = 'Etc/GMT'; 330 if ($prfx === substr($tz, 0, strlen($prfx))) { 331 $sign = substr($tz, strlen($prfx), 1); 332 $tz = $prfx . (('-' === $sign) ? '+' : '-') . substr($tz, strlen($prfx) + 1); 333 } 334 335 $tz = new \DateTimeZone($tz); 336 337 $t = new \DateTime('now', $tz); 338 $ret = static::_convert($t); 330 339 331 340 return $ret; -
plaintracker/trunk/readme.txt
r3371968 r3376450 3 3 Tags: timeclock, employee, attendance, clock, volunteer 4 4 License: GPLv2 or later 5 Stable tag: 3.0. 35 Stable tag: 3.0.4 6 6 Requires at least: 4.8 7 7 Tested up to: 6.8 … … 68 68 69 69 == Changelog == 70 71 = 3.0.4 (2025-10-10) = 72 BUG: Time was displayed incorrectly if the WordPress timezone was set to an UTC-relative option (like UTC+1). 70 73 71 74 = 3.0.3 (2025-10-02) =
Note: See TracChangeset
for help on using the changeset viewer.