Changeset 3412744
- Timestamp:
- 12/06/2025 04:38:26 AM (3 months ago)
- Location:
- content-update-scheduler
- Files:
-
- 2 edited
- 4 copied
-
tags/3.1.5 (copied) (copied from content-update-scheduler/trunk)
-
tags/3.1.5/content-update-scheduler.php (copied) (copied from content-update-scheduler/trunk/content-update-scheduler.php) (2 diffs)
-
tags/3.1.5/options.php (copied) (copied from content-update-scheduler/trunk/options.php)
-
tags/3.1.5/readme.txt (copied) (copied from content-update-scheduler/trunk/readme.txt) (2 diffs)
-
trunk/content-update-scheduler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
content-update-scheduler/tags/3.1.5/content-update-scheduler.php
r3403618 r3412744 7 7 * Author: Infinitnet 8 8 * Author URI: https://infinitnet.io/ 9 * Version: 3.1. 49 * Version: 3.1.5 10 10 * License: GPLv3 11 11 * Text Domain: content-update-scheduler … … 965 965 } 966 966 967 // Create dates (JavaScript interprets as browser's local timezone) 967 968 var selectedDate = new Date(yearInt, monthInt - 1, dayInt, parseInt(timeParts[0]), parseInt(timeParts[1])); 968 969 var now = new Date(); 970 971 // Convert user input from browser timezone to WordPress timezone 972 // selectedDate was created in browser TZ, but needs to represent WordPress TZ 973 var browserOffset = -selectedDate.getTimezoneOffset() / 60; // Browser's UTC offset in hours 974 var timezoneShift = browserOffset - wpTimezoneOffset; // Hours to shift from browser to WordPress timezone 975 976 selectedDate.setHours(selectedDate.getHours() + timezoneShift); 969 977 970 978 if (isNaN(selectedDate.getTime())) { -
content-update-scheduler/tags/3.1.5/readme.txt
r3403618 r3412744 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 3.1. 46 Stable tag: 3.1.5 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 86 86 87 87 == Changelog == 88 89 = 3.1.5 = 90 * fix: Correct date selection offset calculation 88 91 89 92 = 3.1.4 = -
content-update-scheduler/trunk/content-update-scheduler.php
r3403618 r3412744 7 7 * Author: Infinitnet 8 8 * Author URI: https://infinitnet.io/ 9 * Version: 3.1. 49 * Version: 3.1.5 10 10 * License: GPLv3 11 11 * Text Domain: content-update-scheduler … … 965 965 } 966 966 967 // Create dates (JavaScript interprets as browser's local timezone) 967 968 var selectedDate = new Date(yearInt, monthInt - 1, dayInt, parseInt(timeParts[0]), parseInt(timeParts[1])); 968 969 var now = new Date(); 970 971 // Convert user input from browser timezone to WordPress timezone 972 // selectedDate was created in browser TZ, but needs to represent WordPress TZ 973 var browserOffset = -selectedDate.getTimezoneOffset() / 60; // Browser's UTC offset in hours 974 var timezoneShift = browserOffset - wpTimezoneOffset; // Hours to shift from browser to WordPress timezone 975 976 selectedDate.setHours(selectedDate.getHours() + timezoneShift); 969 977 970 978 if (isNaN(selectedDate.getTime())) { -
content-update-scheduler/trunk/readme.txt
r3403618 r3412744 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 3.1. 46 Stable tag: 3.1.5 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 86 86 87 87 == Changelog == 88 89 = 3.1.5 = 90 * fix: Correct date selection offset calculation 88 91 89 92 = 3.1.4 =
Note: See TracChangeset
for help on using the changeset viewer.