OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.26k stars 2.35k forks source link

CMS Date field options Idea #3664

Closed aghili371 closed 4 years ago

aghili371 commented 5 years ago

i think it's better to have an option for a date of the system.

it's not correct to show date fields from default culture. it better to have an option in the defined date field to select with the type (Persian, Arabic, chines,..) it is.

and in showing value of this field, we should use this definition or develop a new filter to convert date to our special date to show.

in Arabic, Persian,... culture the people using two different type calendars so its better to have this possibility to set for any date field, with type calendar should be using.

hishamco commented 5 years ago

It's a duplicate for #3635, please close this and probably you can rename the old one

aghili371 commented 5 years ago

@hishamco this is different than the persian problem. i mean option in a define date field in any new content type. the date field should be specific for any date.

hishamco commented 5 years ago

in Arabic, Persian,... culture the people using two different type calendars so its better to have this possibility to set for any date field, with type calendar should be using.

This could be done with Calendar Support that we already added, it picks up the appropriate calendar based on the CurrentUICulture. There's an option that I will work on to choose a custom calendar from within the admin site

sebastienros commented 5 years ago

I don't understand the issue

hishamco commented 5 years ago

@sebastienros I thought he is talking about datetime picker localization but seems he want sort of specifying a calendar per datetime picker

For example in Arabic we are using two calendars: Gregorian (1/1/2019) & Hijri (1/1/1440), so to make this happen we should use which calendar is associated with the datetime picker

So please set the milestone for this, but I think we need to localize the datetime picker first, because it has a priority

hishamco commented 4 years ago

@agriffard why this closed?!!

Skrypt commented 4 years ago

Duplicate of https://github.com/OrchardCMS/OrchardCore/issues/4593

agriffard commented 4 years ago

@hishamco you said:

It's a duplicate for #3635, please close this and probably you can rename the old one

Skrypt commented 4 years ago

He talks about a Date field so it's a duplicate of #4593 which is a DatetimeOffset field implementation. So there is 2 different topics in this issue. It's fine to close this one as there is already 2 differents issues about these.

hishamco commented 4 years ago

Seems I forgot it's duplicate ;) but as @Skrypt said there 're two different topics here