« Project home page

phpSQLiteCMS Forum

Back to the forum index
Linear

Happy New Year! ... and one question (General)

by dan_oh, Friday, January 01, 2010, 06:38 (251 days ago)

I'm off to a good start and using my free time productively this year!

I am adding entries to a news page. It works great but I'd like to change the date field from the date I wrote it to an older date. Looking at content.sqlite I see the date field is int(11). How would I convert a date/time to the integer format?

Thanks!

Happy New Year! ... and one question

by dan_oh, Friday, January 22, 2010, 19:29 (230 days ago) @ dan_oh

I finally got it by reading & trying examples on the web.
Using sqlitebrowser (http://sqlitebrowser.sourceforge.net) I changed the dates by opening content.sqlite and editing phpsqlitecms_pages.time record.

Using the linux date command:
date -d @1262321260
will output: Thursday, December 31, 2009, 23:47:40

To create a different date:
date --date="12/31/2009 23:47:40" +%s
will output: 1262321260

Hope this comes in handy for someone else too!

RSS Feed of thread
192 Postings in 89 Threads, 63 registered users, 8 users online (0 registered, 8 guests)
Forum time: 2010-09-09, 15:12
RSS Postings  RSS Threads | Contact
powered by my little forum