alchemy_cms 7.0.10 → 7.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03740f526e8baf73a62015e776b187264ab994a64237343fae75cd2f9f48eade
4
- data.tar.gz: 5e8acf12fa9aaccc71f62964f75138d2c759d8e4f927a8e090d63e289c583f17
3
+ metadata.gz: deabc73ce8b0c2eade517bfe45f105dda4163f3c783733f831c469cae17119e5
4
+ data.tar.gz: cdd7d1692459a1ba8250db2742f4d7ae408ca618fa24a91e6f909499cc46b463
5
5
  SHA512:
6
- metadata.gz: ff2dacd727ac7cb03618af13a2b7fe518ac38eba5b0dc39c551410f1510347e5056a784294a80ec38d4334fc65c6c97d4cf0cda43b42fbddb64b8907eaa664f8
7
- data.tar.gz: 98beefe383887b24cdf7c2dd07544bba39e073f2e7a61163f3c59f41041f7502c73464a0a2392e84bb35e7ef125e66a75e2bd166cfc64308596e26e65f085a95
6
+ metadata.gz: 2787d3437e95a26164374d9fb70b12023f19f674972a94952731d527085ed118880aa7aa070caeb17c869ce41d9776134e059dd909b2a9952b9843c2d1fb40be
7
+ data.tar.gz: e1c9daaca6fe230b6973f9cfcba6c5d4b0cfa586ddf02be80dd649db6834f481f8c92d889a7ea73b03dbc1401117e587f7f79c46594a9019a8d22b34ab1f18ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.11 (2024-03-05)
4
+
5
+ - [7.0-stable] Do not include timezone in datepickers only displaying date [#2769](https://github.com/AlchemyCMS/alchemy_cms/pull/2769) ([tvdeyen](https://github.com/tvdeyen))
6
+
3
7
  ## 7.0.10 (2024-02-29)
4
8
 
5
9
  - [7.0-stable] Fix taggable uniqueness in tags admin table [#2763](https://github.com/AlchemyCMS/alchemy_cms/pull/2763) ([alchemycms-bot](https://github.com/alchemycms-bot))
@@ -12,6 +12,8 @@ export default function Datepicker(scope = document) {
12
12
  // Initializes the datepickers
13
13
  datepickerInputs.forEach((input) => {
14
14
  const type = input.dataset.datepickerType
15
+ const enableTime = /time/.test(type)
16
+
15
17
  const options = {
16
18
  // alchemy_i18n supports `zh_CN` etc., but flatpickr only has two-letter codes (`zh`)
17
19
  locale: Alchemy.locale.slice(0, 2),
@@ -19,7 +21,7 @@ export default function Datepicker(scope = document) {
19
21
  altFormat: Alchemy.t(`formats.${type}`),
20
22
  altInputClass: "flatpickr-input",
21
23
  dateFormat: "Z",
22
- enableTime: /time/.test(type),
24
+ enableTime,
23
25
  noCalendar: type === "time",
24
26
  time_24hr: Alchemy.t("formats.time_24hr"),
25
27
  onValueUpdate(_selectedDates, _dateStr, instance) {
@@ -28,6 +30,11 @@ export default function Datepicker(scope = document) {
28
30
  )
29
31
  }
30
32
  }
33
+
34
+ if (enableTime) {
35
+ options.dateFormat = "Z"
36
+ }
37
+
31
38
  flatpickr(input, options)
32
39
  })
33
40
  }
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.0.10"
4
+ VERSION = "7.0.11"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.10
4
+ version: 7.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2024-02-29 00:00:00.000000000 Z
16
+ date: 2024-03-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer