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

timestamp to date Problematik #4

Closed
guay opened this issue Jun 11, 2013 · 6 comments
Closed

timestamp to date Problematik #4

guay opened this issue Jun 11, 2013 · 6 comments

Comments

@guay
Copy link

guay commented Jun 11, 2013

Wer mit dem Attribut 'timestamp' arbeitet, sieht sich bald mit folgendem Problem konfrontiert: Im Backend als 2011-08-20 erfasst, möchte ich diesen Wert in einer Liste nur als Jahr (2011) ausgeben, in der Detailansicht jedoch das ausgeschriebene, lokalisierte Datum sehen, z.B. 20. August 2011. Bei der lokalisierten Datumsabgabe muss ich jedoch mit Arrays arbeiten, da date() grundsätzlich nur Englische Begriffe ausgibt. Gibt es eine Möglichkeit im Backend das Datumsformat und die Sprachversion anzugeben?
(Anbei beide überarbeiteten Attributs-Templates)
mm_attr_timestamp_year
mm_attr_timestamp_tag_monat_jahr

@MiniModel
Copy link
Member

This issue has been labeled with "testing" but got no feedback.

We are reliant on feedback to prove a ticket fixed as we can not tell if the ticket has been resolved if we receive no feedback.
I will close this ticket now, as I assume it has been resolved.
If the ticket should still be valid, please feel free to reopen it.

@guay could you please have a final look at this and tell if your issue has been resolved?

@guay
Copy link
Author

guay commented Jul 10, 2013

Looks good. Tested with nightly dev (2013-07-10, 15:00).
The discription below the format field sounds a little bit too technical. "... The format string will be parsed with the PHP date() function." One or two simple examples like 2013-10-03 => d. M. Y => 03. Okt. 2013 would be helpful for those who know nothing about PHP. Thanx for the great job.

@tognit
Copy link

tognit commented Aug 11, 2013

Hello,
after the update, I get the following error message:

Fatal error: Call to undefined method stdClass::get() in /system/modules/metamodelsattribute_timestamp/MetaModelAttributeTimestamp.php on line 63

Grüessli
Steven

@discordier
Copy link
Member

Are you sure you are using the dev version of the nightly core with the dev version of the attribute?

@tognit
Copy link

tognit commented Aug 14, 2013

With the dev version the error is no more. Thanks for the info!

But now I have the problem that in the backend list only the timestamp format appears. But I would like to sort by years. Like in the catalog.

Thank you

@discordier
Copy link
Member

This is a seperate issue, please check if already reported and, if not, file a new one.
We rather do not clutter this ticket with unrelated stuff. Feel free to mention this ticket in the new one though.

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