Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
extensions.typo3.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
9
Merge Requests
9
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
services
extensions.typo3.org
extensions.typo3.org
Commits
0984225e
Commit
0984225e
authored
Feb 08, 2018
by
Thomas Löffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shows the upload date of first version in "first upload"
parent
a319e6f0
Pipeline
#3530
passed with stages
in 5 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php
.../typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php
+15
-0
html/typo3conf/ext/ter_fe2/Resources/Private/Partials/ExtensionSingleInfo.html
...r_fe2/Resources/Private/Partials/ExtensionSingleInfo.html
+1
-1
No files found.
html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php
View file @
0984225e
...
...
@@ -638,4 +638,19 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
return
json_encode
(
$versions
);
}
/**
* @return \DateTime|null
*/
public
function
getDateOfFirstUpload
()
{
if
(
$this
->
versions
->
count
()
===
0
)
{
return
null
;
}
$firstVersion
=
$this
->
getReverseVersionsByVersionNumber
(
1
)[
0
];
$dateOfFirstUpload
=
new
\
DateTime
();
$dateOfFirstUpload
->
setTimestamp
(
$firstVersion
->
getUploadDate
());
return
$dateOfFirstUpload
;
}
}
html/typo3conf/ext/ter_fe2/Resources/Private/Partials/ExtensionSingleInfo.html
View file @
0984225e
...
...
@@ -18,7 +18,7 @@
<f:translate
key=
"first_upload"
/>
</dt>
<dd>
<f:format.date
format=
"%d. %b %Y"
>
{extension.
crdate
}
</f:format.date>
<f:format.date
format=
"%d. %b %Y"
>
{extension.
dateOfFirstUpload
}
</f:format.date>
</dd>
<dt>
<f:translate
key=
"downloads"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment