Plugin Directory

Changeset 3104959


Ignore:
Timestamp:
06/20/2024 09:41:52 AM (9 months ago)
Author:
infinitnet
Message:

v2.0 release

Location:
content-update-scheduler
Files:
2 edited
6 copied

Legend:

Unmodified
Added
Removed
  • content-update-scheduler/tags/2.0/js/publish-datepicker.js

    r3100550 r3104959  
    4242    var timeMin = $( 'select[name=cus_sc_publish_pubdate_time_mins]' ).val();
    4343   
    44     var selectedDateTime = new Date(dateString + ' ' + timeHour + ':' + timeMin);
    45    
    46     // Adjust for WordPress timezone
    47     selectedDateTime.setMinutes(selectedDateTime.getMinutes() - offsetMins);
    48     now.setMinutes(now.getMinutes() - offsetMins);
     44    var dateParts = dateString.split('.');
     45    var selectedDateTime = new Date(dateParts[2], dateParts[1] - 1, dateParts[0], timeHour, timeMin);
    4946
    50     if (now > selectedDateTime) {
    51         $( '#pastmsg' ).show();
    52     } else {
    53         $( '#pastmsg' ).hide();
    54     }
     47    // Adjust for WordPress timezone
     48    selectedDateTime.setMinutes(selectedDateTime.getMinutes() - offsetMins);
     49    now.setMinutes(now.getMinutes() - offsetMins);
     50
     51    if (now > selectedDateTime) {
     52        $('#pastmsg').show();
     53    } else {
     54        $('#pastmsg').hide();
     55    }
    5556};
  • content-update-scheduler/tags/2.0/readme.txt

    r3101771 r3104959  
    5151== Changelog ==
    5252
     53= 2.0 =
     54* Fixed bug with date selection
     55
    5356= 1.9 =
    5457* Ensure correct copying and maintenance of WooCommerce stock status during republication process and when saving the republication draft
  • content-update-scheduler/trunk/js/publish-datepicker.js

    r3100550 r3104959  
    4242    var timeMin = $( 'select[name=cus_sc_publish_pubdate_time_mins]' ).val();
    4343   
    44     var selectedDateTime = new Date(dateString + ' ' + timeHour + ':' + timeMin);
    45    
    46     // Adjust for WordPress timezone
    47     selectedDateTime.setMinutes(selectedDateTime.getMinutes() - offsetMins);
    48     now.setMinutes(now.getMinutes() - offsetMins);
     44    var dateParts = dateString.split('.');
     45    var selectedDateTime = new Date(dateParts[2], dateParts[1] - 1, dateParts[0], timeHour, timeMin);
    4946
    50     if (now > selectedDateTime) {
    51         $( '#pastmsg' ).show();
    52     } else {
    53         $( '#pastmsg' ).hide();
    54     }
     47    // Adjust for WordPress timezone
     48    selectedDateTime.setMinutes(selectedDateTime.getMinutes() - offsetMins);
     49    now.setMinutes(now.getMinutes() - offsetMins);
     50
     51    if (now > selectedDateTime) {
     52        $('#pastmsg').show();
     53    } else {
     54        $('#pastmsg').hide();
     55    }
    5556};
  • content-update-scheduler/trunk/readme.txt

    r3101771 r3104959  
    5151== Changelog ==
    5252
     53= 2.0 =
     54* Fixed bug with date selection
     55
    5356= 1.9 =
    5457* Ensure correct copying and maintenance of WooCommerce stock status during republication process and when saving the republication draft
Note: See TracChangeset for help on using the changeset viewer.