alchemy_cms 7.0.10 → 7.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/javascript/alchemy_admin/datepicker.js +8 -1
- data/lib/alchemy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deabc73ce8b0c2eade517bfe45f105dda4163f3c783733f831c469cae17119e5
|
4
|
+
data.tar.gz: cdd7d1692459a1ba8250db2742f4d7ae408ca618fa24a91e6f909499cc46b463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
}
|
data/lib/alchemy/version.rb
CHANGED
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.
|
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-
|
16
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: actionmailer
|