Line 201 of file author_pane.module is as follows:

$just_date = str_replace(array('H:i', 'g:ia', ' - '), '', variable_get('date_format_short', 'm/d/Y - H:i'));

This assumes a great deal about the date/time format, since we can specify our own formats in the drupal interface which can include among other things, punctuation (eg , : - / @) and also seconds and timezone identifier.

I found that this produced strange looking dates using my default short date format (j M Y, H:i:s T).

You should use a more generic method of extracting the date part from the time, and not rely upon a particular format string, or simply use the entire date and time as given.

Comments

Michelle’s picture

Title: Author pane assumes certain things regarding date format » Make date extraction smarter
Status: Active » Postponed (maintainer needs more info)

If you have a suggestion for a more generic method, patches / code snippits are welcome.

Michelle

Scyther’s picture

Issue tags: +7.x-2.x-beta-blocker

Added tag

Scyther’s picture

Status: Postponed (maintainer needs more info) » Fixed

http://drupalcode.org/project/author_pane.git/commit/dd284ca

Commited a update that adds a choise, to select which Date type to use to display the join date, for block and content pane.

Michelle’s picture

Is the non-date related stuff in there intentional? Not quibbling about the specificity of the commit, just making sure it wasn't accidental. :)

Michelle

Scyther’s picture

Yes it was intentionally. Needed to add the select option to the block and content pane so you could select which date type to format the join date on.

Michelle’s picture

Well, I meant the other stuff... But, looking closer, I guess most of it is just changing comments around and such and not any actual functionality change.

Michelle

Status: Fixed » Closed (fixed)
Issue tags: -7.x-2.x-beta-blocker

Automatically closed -- issue fixed for 2 weeks with no activity.