Lars' Tech Tips

Small things that make your life easier

Skip to: Content | Sidebar | Footer



Change the date format in Symfony with Propel

2 March, 2010 (01:28) | PHP, Symfony / Propel | By: Lars

You’ll usually want to have the same date format all over your Symfony / Propel project.

You only need to change one thing to do that:

In config/propel.ini:

propel.defaultTimeStampFormat = j M Y H:i
propel.defaultTimeFormat      = H:i
propel.defaultDateFormat      = j M Y

You can set the above format using PHP date() formatting.

After setting this run Symfony tasks propel:build-all (you may not need to reload the sql though) and cache:clear.

That’s all, enjoy!

Comments

Comment from ekawahyu
Time March 27, 2010 at 11:27 am

OOT, do you know how to contact project maintainer of eclipseSDCC. The project seems dead. Thanks.

Comment from Lars
Time March 29, 2010 at 10:14 am

@ejawahyu unfortunately I don’t have a contact for the project maintainer of eclipseSDCC, the project seems dead indeed, I only helped with their website a few years ago.

Trackback from CHAD
Time June 27, 2010 at 4:43 am

PillSpot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.PillSpot.org. Herbal-supplements@buy.online” rel=”nofollow”>.…

Categories: Antibiotics.Anxiety/Sleep Aid.Vitamins/Herbal Supplements.Mens Health.Antiviral.Anti-allergic/Asthma.Skin Care.Antidiabetic.Weight Loss.Womens Health.Antidepressants.Stop SmokingMental HealthStomach.Eye Care.Pain Relief.Blood Pressure/…

Write a comment