Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a blog entry that is dated 2008-11-12 in the archives and the date line.
Pathauto gives it an alias of 2008/11/11/title.
This is likely because the server is in California and running Pacific Time internally. Needless to say, I'd like date URLs to go by the site's default timezone instead of the server's.
Comment | File | Size | Author |
---|---|---|---|
#2 | token-node-format-date-333263-1.patch | 2.1 KB | cburschka |
Comments
Comment #1
cburschkaApologies, I forgot that pathauto uses token for this.
Comment #2
cburschkatoken.module does it correctly, using format_date instead of date. This adds the same for token_node.inc
Comment #3
gregglesWhere does the $tz variable get created?
Either I'm missing something when looking at the current code or this patch is missing something.
Also, I know it's more typing but $tz means a lot less to me than $time_zone. Drupal tends to prefer a more self-explanatory variable name.
Comment #4
Dave ReidMarking this as a duplicate of #307520: Date formatting function which would solve this.