Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds-3312562
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
feeds-3312562
Commits
c862b5f6
Commit
c862b5f6
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Fix notices in tests.
parent
d8b4db63
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/FeedsParser.inc
+3
-2
3 additions, 2 deletions
plugins/FeedsParser.inc
with
3 additions
and
2 deletions
plugins/FeedsParser.inc
+
3
−
2
View file @
c862b5f6
...
...
@@ -447,9 +447,10 @@ class FeedsDateTime extends DateTime {
protected
function
setGranularityFromTime
(
$time
,
$tz
)
{
$this
->
granularity
=
array
();
$temp
=
date_parse
(
$time
);
// This PHP method currently doesn't have resolution down to seconds, so if there is some time, all will be set.
// This PHP method currently doesn't have resolution down to seconds, so if
// there is some time, all will be set.
foreach
(
self
::
$allgranularity
AS
$g
)
{
if
(
is_numeric
(
$temp
[
$g
])
||
(
$g
==
'zone'
&&
$temp
[
'zone_type'
]
>
0
))
{
if
(
(
isset
(
$temp
[
$g
])
&&
is_numeric
(
$temp
[
$g
])
)
||
(
$g
==
'zone'
&&
(
isset
(
$temp
[
'zone_type'
])
&&
$temp
[
'zone_type'
]
>
0
))
)
{
$this
->
granularity
[]
=
$g
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment