Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Adding Web Content Articles fails if user Time Zone is set to Australia, NZ
From what I understand, this is where bugs are lodged?
I have what seems like quite a major bug to do with Time Zones (Australia and New Zealand tested) and adding new Web Content Articles.
Steps to reproduce:
Start a new docker container for Liferay Portal 7.4 GA 132 (I use
podman instead as below)
podman run --rm -m 8g -p 8080:8080 portal:7.4.3.132-ga132
Login, create a new Web Content article.
Content & Data ->
Web Content -> New -> Basic Web Content
Save as Draft (or publish), a Save as Draft with Permissions Dialog
pops up.
Everything works
Go to the logged in user's Account Settings -> Preferences -> Display Settings and choose Time Zone "New Zealand Standard Time" or "Australian Central Time" (only two tested) and Save
Repeat the above steps to create a Web Content Article
Now it
does not work. The Cancel button shows, the Save as ... with
Permissions Dialog never shows up. The user can't save any Web Content Articles.
In the browser Console you have the following errors:
react-dom.production.min.js:189 RangeError: Invalid time zone specified: ACST
at Date.toLocaleString (<anonymous>)
at Ne (PermissionsOptions.js:60:3)
at hu (react-dom.production.min.js:167:137)
at Ka (react-dom.production.min.js:290:337)
at Wa (react-dom.production.min.js:280:389)
at nd (react-dom.production.min.js:280:320)
at tl (react-dom.production.min.js:280:180)
at Ai (react-dom.production.min.js:271:88)
at Aa (react-dom.production.min.js:268:429)
at _l (scheduler.production.min.js:13:203)
zi @ react-dom.production.min.js:189
t.callback @ react-dom.production.min.js:189
zo @ react-dom.production.min.js:144
$o @ react-dom.production.min.js:262
Va @ react-dom.production.min.js:260
qf @ react-dom.production.min.js:259
rd @ react-dom.production.min.js:283
yn @ react-dom.production.min.js:281
Aa @ react-dom.production.min.js:269
_l @ scheduler.production.min.js:13
kl @ scheduler.production.min.js:14
react-dom.production.min.js:283 Uncaught RangeError: Invalid time zone specified: ACST
at Date.toLocaleString (<anonymous>)
at Ne (PermissionsOptions.js:60:3)
at hu (react-dom.production.min.js:167:137)
at Ka (react-dom.production.min.js:290:337)
at Wa (react-dom.production.min.js:280:389)
at nd (react-dom.production.min.js:280:320)
at tl (react-dom.production.min.js:280:180)
at Ai (react-dom.production.min.js:271:88)
at Aa (react-dom.production.min.js:268:429)
at _l (scheduler.production.min.js:13:203)
Ne @ PermissionsOptions.js:60
hu @ react-dom.production.min.js:167
Ka @ react-dom.production.min.js:290
Wa @ react-dom.production.min.js:280
nd @ react-dom.production.min.js:280
tl @ react-dom.production.min.js:280
Ai @ react-dom.production.min.js:271
Aa @ react-dom.production.min.js:268
_l @ scheduler.production.min.js:13
kl @ scheduler.production.min.js:14
Powered by Liferay™