Skip to content

Commit b1a97f9

Browse files
Copilotswissspidy
andcommitted
Improve comment to clarify use of gmdate() for UTC consistency
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 011035c commit b1a97f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UpdatePoCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public function __invoke( $args, $assoc_args ) {
8787
Merge::ADD | Merge::REMOVE | Merge::COMMENTS_THEIRS | Merge::EXTRACTED_COMMENTS_THEIRS | Merge::REFERENCES_THEIRS | Merge::DOMAIN_OVERRIDE
8888
);
8989

90-
// Update PO-Revision-Date to current date and time.
90+
// Update PO-Revision-Date to current date and time in UTC.
91+
// Uses gmdate() for consistency across different server timezones.
9192
$po_translations->setHeader( 'PO-Revision-Date', gmdate( 'Y-m-d\TH:i:sP' ) );
9293

9394
if ( ! $po_translations->toPoFile( $file->getPathname() ) ) {

0 commit comments

Comments
 (0)