Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
494dd55b
Commit
494dd55b
authored
13 years ago
by
StepanKuzmin
Committed by
Eric Mckenna
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1225672 by StepanKuzmin, tekante | guillaumev: Fixed Bug when
importing a single year.
parent
f56b7ee8
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
+4
-1
4 additions, 1 deletion
plugins/FeedsParser.inc
with
4 additions
and
1 deletion
plugins/FeedsParser.inc
+
4
−
1
View file @
494dd55b
...
@@ -534,7 +534,10 @@ class FeedsDateTime extends DateTime {
...
@@ -534,7 +534,10 @@ class FeedsDateTime extends DateTime {
public
function
__construct
(
$time
=
''
,
$tz
=
NULL
)
{
public
function
__construct
(
$time
=
''
,
$tz
=
NULL
)
{
// Assume UNIX timestamp if numeric.
// Assume UNIX timestamp if numeric.
if
(
is_numeric
(
$time
))
{
if
(
is_numeric
(
$time
))
{
$time
=
"@"
.
$time
;
// Make sure it's not a simple year
if
((
is_string
(
$time
)
&&
strlen
(
$time
)
>
4
)
||
is_int
(
$time
))
{
$time
=
"@"
.
$time
;
}
}
}
// PHP < 5.3 doesn't like the GMT- notation for parsing timezones.
// PHP < 5.3 doesn't like the GMT- notation for parsing timezones.
...
...
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