User tests: Successful: Unsuccessful:
Pull Request for Issue #16794 .
data-alt-value
to be always Gregorian!Create a new article and fill the publishing fields with different methods (manual using the UI)
save the article
Edit again the fields (try clearing the filed with backspace, the clear button) and also change the values manually and using the UI
Repeat the tests with fa-IR as your admin language
Report any remaining inconsistencies, if any
Values are always consistent!
Inconsistent values when a value was typed in
@farzadtaheri @farhadst can you please test here!
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Language & Strings |
Labels |
Added:
?
?
|
@farhadst
Not sure you tested correctly
The start Publishing date can't be set to a date older than the Created date.
Please try using a date = or >Created date
Test this case:
Created date = Start Publishing date.
Created date is ۱۳۹۶-۰۴-۰۹ ۱۳:۵۷:۰۰
(this will be displayed as rtl when Persian language is used. (Equivalent Gregorian is 2017-06-30 13:57:00
)
Now, in Start Publishing change the day only by pasting ۱۰
to replace ۰۹
(i.e. 10
to replace 09
and save.
I get here while it is saving:
Which is the correct Gregorian date as we have 30 days in June, so 1 day more (today in fact here) is July 1. (2017-07-01 13:57:00)
And when jalali displays again
Which is exactly what is desired at the beginning.
As far as months are concerned
Is'nt ۰۴
before ۰۵
? In this case, when you modify the Start publishing and the Created Date is ۰۴
, you should use ۰۵
. This works fine here.
This why I tested the Finish Publishing field with a future date, to be independent from the Created vs Start vs Finish
@infograf768
I do not think it's related to Created date
(I changed the numbers to Latin to be clearer)
I test again
create date is before published and no effect in result
I think this issue is for calculate 30 or 31 days month
In the Jalali calendar, the first 6 months are 31 days (Apr-May-Jun-Jul-Aug-Sep) and 5 months later are 30 days and Twelfth month is 29 days
And still The first month can not be set manual even in Created date
@farhadst can you edit the layout and remove these lines: https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/form/field/calendar.php#L98-L104
Of course you will not have a jallali date, but can you try doing the same test there? What's the results?
@dgt41 I have check again
The value of selected date in the Jalali calendar is correct
This problem happens when the value is set manually and there is no problem if the same value of pop-up is added.
I reviewed many days in different months by manual
If one of the January (12/10 to 11/11 jalali) days is chosen according to Jalali, one day will be added
to date, for example if set 1396-10-13 (3January) and save it, date change to 1396-10-14
any date In February, 1 day is added to the selected date
any date In March, 2 days from the chosen date will be reduced
any date In April, no day can be chosen and if set any date, this change to the first of may
any date In may, 1 days from the chosen date will be reduced
There is no problem in June
any date In july, 1 days from the chosen date will be reduced
There is no problem in August and September
any date In October, 1 days from the chosen date will be reduced
any date In November, 1 day is added to the selected date
There is no problem in December
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-07-03 07:36:57 |
Closed_By | ⇒ | rdeutz | |
Labels |
Removed:
?
|
@farhadst
We do know there are still issues when entering dates manually in the field for fa-IR.
We decided to merge what we had to at least let use the Calendar popup correctly.
It will not be solved either in 3.7.4
I suggest you create a new Issue which would contain #16922 (comment) in order to try to solve it in the future.
There's an issue in Joomla 3.7.4, published time is different than time in server and in global configuration. When you modify an article appears "published but pending". I've tried almost everything, changed server time, global settings in joomla, change user time settings, and so on. I guess it is a bug because it started happening with 3.7.4 version... Any idea?
I am using Joomla! 3.7.4 , PHP 7.0.22, cPanel.
@davenlife please open a new issue as this is already closed and your comment will be missed. Thanks.
I have tested this item✅ successfully on 83ff2fb
Works fine now !
Test instructions for non-Persian speakers.
Install Persian language.
Apply patch on staging or RC2.
Create a new article and save. Keep the page open on the Publishing tab.
Then switch to Persian by opening a new instance of admin in the browser and go back to the page displaying the article just created, reload the page.
In the Finish Publishing Calendar Field enter a date in the future
۱۳۹۶-۰۶-۲۶ ۱۴:۳۰:۰۰
which is the equivalent of2017-09-17 14:30:00
for en-GB.Save again. The calendars fields will display for a second the UNIX date i.e.
2017-09-17 14:30:00
and then the new Jalali date which has been entered.This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16922.