Make WordPress Core

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#878 closed defect (bug) (fixed)

rss2 import switches values for post_date and post_date_gmt

Reported by: pgarrett's profile pgarrett Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: General Keywords: has-patch 2nd-opinion rss import
Focuses: Cc:

Description

When importing an rss2 feed I discovered all posts dats were set to GMT time and the offset seemed to be ignored. Found that the values were simply being switched. Made the following changed to lined 148-149 in import-rss.php

148: switch variables
DATE_ADD('$post_date', INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)
and
'$post_date'

149: replace
$post_date
with
DATE_ADD('$post_date', INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)

Attachments (1)

878.diff (1.8 KB) - added by mdawaffe 19 years ago.

Download all attachments as: .zip

Change History (10)

#1 @pgarrett
20 years ago

  • Patch set to No

#2 @ryan
20 years ago

  • Patch changed from No to Yes

#3 @mdawaffe
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

fixed with import classes if not earlier.

@mdawaffe
19 years ago

#4 @mdawaffe
19 years ago

  • Keywords has-patch 2nd-opinion rss import added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Not fixed afterall. Patch attached.

#5 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4149]) Post date fixes. Props mdawaffe. fixes #878

#6 @ryan
19 years ago

  • Milestone set to 2.1

#7 @ryan
19 years ago

(In [4236]) Post date fixes. Props mdawaffe. fixes #878

#8 @foolswisdom
19 years ago

  • Milestone changed from 2.1 to 2.0.5

#9 @(none)
18 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.