vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to change the date of a post? (https://vborg.vbsupport.ru/showthread.php?t=110734)

SnappedAgain 03-18-2006 03:30 PM

How to change the date of a post?
 
<font size="4">I had an issue with the date and time being set wrong on my computer so all posts that were made within the last 24 hours say they were posted on 4/16/06 when really it should have been 3/16/06 So now that the date is set correctly when people post in those threads the NEW POSTS go ABOVE the old posts.

So does anyone know how I can change the date of certain posts so that I can get them all in order? I am assuming that I should be able to edit the dateline in the database manually but how do you decode the dateline value? Example: dateline value of a post is 1142577636 = 3/16/06 @ 11:40PM So how would I go about decoding that so I can edit the other posts?

TIA</font>

Carnage 03-18-2006 03:47 PM

the time 1142577636 represents the time in seconds since 1/1/1970

In theory to put the posts back a day, all you need to do is usbtract 86400 from each of the numbers you wish to change.

Alternativly there is an advanced edit hack on here that allows admins to change the timestmp of posts from within the edit menu.

SnappedAgain 03-18-2006 06:04 PM

Quote:

Originally Posted by Carnage-
the time 1142577636 represents the time in seconds since 1/1/1970

In theory to put the posts back a day, all you need to do is usbtract 86400 from each of the numbers you wish to change.

Alternativly there is an advanced edit hack on here that allows admins to change the timestmp of posts from within the edit menu.

WOW LMAO That's a lot of math for just changing the dates around HAHA. I think I will look for that hack. Thank you for the input ;)

filburt1 03-18-2006 06:32 PM

Please don't change your font size as you post.

THere's no calculation that you need to do. http://www.php.net/time and http://www.php.net/date .

Code Monkey 03-18-2006 06:57 PM

Why are you shouting like that?

Tralala 03-18-2006 07:10 PM

Quote:

Originally Posted by Carnage-
Alternativly there is an advanced edit hack on here that allows admins to change the timestmp of posts from within the edit menu.

I know of two hacks:

https://vborg.vbsupport.ru/showthread.php?t=96351
https://vborg.vbsupport.ru/showthread.php?t=98737

SnappedAgain 03-19-2006 01:28 AM

Quote:

Originally Posted by filburt1
Please don't change your font size as you post.

THere's no calculation that you need to do. http://www.php.net/time and http://www.php.net/date .

WOW Im not trying to be a ++++ but if it's such a problem why don't you have the admin disable the font size function! I mean seriously is it that big a deal :ermm: It's just a habit.

Quote:

Originally Posted by JumpD
Why are you shouting like that?

Shouting? LOL THIS IS SHOUTING :p

Thanks man ;)

Tralala 03-19-2006 01:37 AM

Quote:

Originally Posted by SnappedAgain
It's just a habit.

Strange habit.

SnappedAgain 03-19-2006 02:21 AM

Quote:

Originally Posted by Tralala
Strange habit.

haha my bad. Well I will try to remember not to do it on this forum ;)

Funny how the stupidest things bother people :p

Tralala 03-19-2006 05:43 AM

Quote:

Originally Posted by SnappedAgain
haha my bad. Well I will try to remember not to do it on this forum ;)

Funny how the stupidest things bother people :p


First sentence: well done, thanks, much appreciated.

Second sentence: not so much.


All times are GMT. The time now is 09:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01028 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete