Re: [symfony-users] Wrong date and currency format for locale

2010-12-01 Thread Pierre-Yves LEBECQ
Maybe the default culture is not properly set on the user.

Could you try to set it manually in an action displaying dates ?

$this-getUser()-setCulture('es_AR');



2010/11/26 hrajchert hrajch...@gmail.com

 Hi, i live in Argentina and speak spanish, so my default culture is
 es_AR.
 Ive setted the default culture in apps/frontend/config/settings.yml

 When I print todays date using the format_date helper it prints
 12/25/10, which is mm/dd/yy. Normaly in Argentina the dates are
 displayed as dd/mm/ such as 25/12/2010.

 Also when using the format_currency like echo Tengo .
 format_currency(500) i expect this output: Tengo $500, but i got:
 Tengo 500.

 I couldnt find a way to change the date formating or the currency
 formating for my locale. Is this a bug or im missing something.

 With regards,
 Hernan Rajchert

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Wrong date and currency format for locale

2010-11-27 Thread hrajchert
Hi, i live in Argentina and speak spanish, so my default culture is
es_AR.
Ive setted the default culture in apps/frontend/config/settings.yml

When I print todays date using the format_date helper it prints
12/25/10, which is mm/dd/yy. Normaly in Argentina the dates are
displayed as dd/mm/ such as 25/12/2010.

Also when using the format_currency like echo Tengo .
format_currency(500) i expect this output: Tengo $500, but i got:
Tengo 500.

I couldnt find a way to change the date formating or the currency
formating for my locale. Is this a bug or im missing something.

With regards,
Hernan Rajchert

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en