Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2012-09-04] SS 3.01 asset date format #544

Closed
silverstripe-issues opened this issue Apr 3, 2013 · 4 comments
Closed

[2012-09-04] SS 3.01 asset date format #544

silverstripe-issues opened this issue Apr 3, 2013 · 4 comments

Comments

@silverstripe-issues
Copy link

created by: @JStika (Pike)
created at: 2012-09-04
original ticket: http://open.silverstripe.org/ticket/7840


Why is bad date format (czech) in asset admin interface? It'd be default like on screen-02

@silverstripe-issues
Copy link
Author

comment by: socks
created at: 2012-11-02


In case the description isn't clear. The date displayed in Files > Edit & Organize (grid field) isn't respecting the users date format preference.

@guzzlefry
Copy link

Set in AssetAdmin::getEditForm(), around line 172:

$columns->setFieldCasting(array(
    'Created' => 'Date->Nice'
));

What are some potential solutions for this? I was thinking about adding a UserNice() method on SS_Datetime, which would fallback to SS_Datetime::Nice() if needed.

Thoughts?

@JStika
Copy link

JStika commented Feb 11, 2014

I don't see this problem in SS 3.2.1 yet.

chillu added a commit to chillu/silverstripe-framework that referenced this issue Feb 16, 2014
Default to "yyyy-MM-dd" for date format, and "H:mm" for time_format.
Switched to config API for setting/getting values.

Avoid using "MMM" in particular, since it causes
inconsistencies in month names between jQuery UI and Zend_Locale_Format.

Fixes silverstripe/silverstripe-cms#544
@simonwelsh
Copy link
Contributor

3.1 uses ->Ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants