Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/schedule-build-plugin
  Commit: a2b4f85447081e8eb5f45af3cd0199dd59b3df8b
      
https://github.com/jenkinsci/schedule-build-plugin/commit/a2b4f85447081e8eb5f45af3cd0199dd59b3df8b
  Author: Markus Winter <m.win...@sap.com>
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
    M README.md
    M docs/images/Schedule_Build_Queue.png
    M docs/images/Schedule_Page.png
    M docs/images/Schedule_Timezone.png
    M src/main/java/org/jenkinsci/plugins/schedulebuild/ScheduleBuildAction.java
    M 
src/main/java/org/jenkinsci/plugins/schedulebuild/ScheduleBuildGlobalConfiguration.java
    M 
src/main/resources/org/jenkinsci/plugins/schedulebuild/ScheduleBuildAction/index.jelly
    M 
src/main/resources/org/jenkinsci/plugins/schedulebuild/ScheduleBuildGlobalConfiguration/config.jelly
    R 
src/main/resources/org/jenkinsci/plugins/schedulebuild/ScheduleBuildGlobalConfiguration/help-defaultScheduleTime.html
    A 
src/main/resources/org/jenkinsci/plugins/schedulebuild/ScheduleBuildGlobalConfiguration/help-defaultStartTime.html
    M 
src/main/resources/org/jenkinsci/plugins/schedulebuild/ScheduleBuildGlobalConfiguration/help-timeZone.html
    A src/main/webapp/help/help-date.html
    R 
src/test/java/org/jenkinsci/plugins/schedulebuild/JCasCGlobalAllFields.java
    A 
src/test/java/org/jenkinsci/plugins/schedulebuild/JCasCGlobalNewFieldsTest.java
    A 
src/test/java/org/jenkinsci/plugins/schedulebuild/JCasCGlobalOldFieldsTest.java
    M 
src/test/java/org/jenkinsci/plugins/schedulebuild/ScheduleBuildActionTest.java
    M 
src/test/java/org/jenkinsci/plugins/schedulebuild/ScheduleBuildGlobalConfigurationTest.java
    R 
src/test/resources/org/jenkinsci/plugins/schedulebuild/scheduleBuild-all-fields.yaml
    A 
src/test/resources/org/jenkinsci/plugins/schedulebuild/scheduleBuild-new-fields.yaml
    A 
src/test/resources/org/jenkinsci/plugins/schedulebuild/scheduleBuild-old-fields.yaml

  Log Message:
  -----------
  [JENKINS-72653] fix timezone handling (#301)

* [JENKINS-72653] improve time zone handling

* [JENKINS-72653] fix timezone handling

the implementation to prefill the scheduled time with the global value
was not working properly, when the timezone of the controller was
different from the timezone that was configured. The implementation used
java.util.Date which has only limited capabilites to work with
timeszones.
This change replaces all date/time handling with new classes from the
java.time packages.
The timezone is no longer a free text field but a dropdown that gets
filled with all available zone ids.
The datetime field to schedule a build is no longer locale dependent but
uses a fixed format based on 24h format (see [JENKINS-72645]).
It is optional to enter seconds.
The actual timezone that will be used is shown as field description.
The time input on global config allows to specify am/pm but also 24h
formats, seconds are optional.

* fix security alerts

* update pics and readme

* fix typo

* allow system_read in doCHeck and doFill

* apply spotless

* fix checkurl

* fix merge error

* fix help url

* allow AM/PM

* Format with spotless

---------

Co-authored-by: Mark Waite <mark.earl.wa...@gmail.com>



To unsubscribe from these emails, change your notification settings at 
https://github.com/jenkinsci/schedule-build-plugin/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-commits+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/schedule-build-plugin/push/refs/heads/master/56f3e5-a2b4f8%40github.com.

Reply via email to