l10n_community/export.inc uses the current date to generate the POT-Creation-Date header. Let's use the release parse date instead.

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes

This is a patch to an older version of l10n_server. Not sure it still applies.

gábor hojtsy’s picture

Status: Needs review » Needs work

Patch is 0 bytes.

damien tournoud’s picture

Status: Needs work » Needs review
StatusFileSize
new1.57 KB

Try again.

gábor hojtsy’s picture

Status: Needs review » Needs work

Ideally we'd use the release date itself, but that is not available (yet) to the module. However, thinking more about this, the project last parse date is still not the most accurate date we have, since a project might have numerous releases parsed, and the project last parsed date is the last of these. So when you export a template for an older release, the date would not be right. So I'd say we should use the release last parsed date when a release is set. Something like:

$export_date = date("Y-m-d H:iO", isset($release) ? $release->last_parsed : $project->last_parsed);
gábor hojtsy’s picture

We do have a file_date column in the release table, which can be useful to count this. It might be more accurate compared to the parse date.

SebCorbin’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

6.x is now discontinued