Closed (fixed)
Project:
Bamboo
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 May 2013 at 13:06 UTC
Updated:
8 Jun 2013 at 14:10 UTC
I really like the Bamboo theme. One minor issue is the way months are displayed. They are in English abbreviated form. If you use Drupal's format_date function, the theme will certainly be a global success!!
Comments
Comment #1
danny englanderHi I might be interested in this but I need a specific example of where this is an issue with the theme. Right now I use the php date function so it should pick up whatever your language is for the month for example. I'm using the short
"M"date format as a stylistic choice for the date (month) in a node.I really would not want to change that otherwise. Feel free to submit a patch or some example code but it should be relevant to Bamboo, not simply some abstract code referring to the API or a link to the API.
Comment #2
drupalaar commentedI changed the following line in the node.tpl.php to use the Bamboo theme in Dutch:
Original:
echo date("M", $node->created);My change:
echo format_date($node->created, "custom", "M");Comment #3
danny englanderHi thanks for this. I've implemented this in 1.x dev and 2.x dev. Can you have a look to make sure. I've tested it and it looks good to me. Thanks.
http://drupalcode.org/project/bamboo.git/blobdiff/3fac6d24c9f963a14504ff...
Comment #4
danny englanderActually, I refined it by taking the date logic out of node and created variables in template.php
http://drupalcode.org/project/bamboo.git/commit/7fa6fe0
Comment #5
danny englanderActually, I refined it by taking the date logic out of node and created variables in template.php
http://drupalcode.org/project/bamboo.git/commit/7fa6fe0
http://drupalcode.org/project/bamboo.git/blobdiff/e6ed7c3e5946803f2f2bc9...
Comment #6
danny englanderComment #7
drupalaar commentedComment #8
danny englanderPlease don't change the title, it's important for people to be able to scan through the issues to quickly see if this is one they are having. Thanks.