Is there a way to change the date/time of a lot of posts at once?
Changing date of many posts?
Collapse
X
-
Tags: None
-
-
Comment
-
Basically, I set the date wrong on my forums. I caught it after a few days but now all the posts have the wrong date on them. I want to basically add three weeks to the date of all posts on my forums.
I know I need to execute a SQL query to do this. Hopefully someone can help me out with the syntax for this.Comment
-
-
The dateline column in the post table is in Unix timestamp format, which is the number of seconds since midnight Jan. 1, 1970. You can use this online tool to convert Unix Timestamps to date and time:
Just remember to enter in the GMT values for the server and not the date and time in your specific timezone.Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
Change CKEditor Colors to Match Style (for 4.1.4 and above)
Steve Machol Photography
Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.
Comment
-
Comment
-
SET dateline = dateline - 1231891200 is never going to accomplish what you're trying to do. 1231891200 is 14258 days earlier than dateline, and as of now is approximately "the beggining of time" as far as unix goes... 39.06 years ago, or early January 1970. So you'd basically be subtracting 39 years from the current date.
If your need to adjust your timestamp back by exactly one day, it would be SET dateline - 86400. 86400 is the number of seconds in one day. If you need to go back several days, weeks, whatever... multiply 86400 x the number of days you want to go back and use that number.Anybody who says "it can't be done" will usually be interrupted by somebody who is already doing it.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment