bluebutterflyofyourmind Posted December 24, 2007 Share Posted December 24, 2007 Hey there. i'm having a bit of an issue with using timestamps when uploading something to a database. When i insert an item into my table, i have a field names "DateUploaded" where the type is Timestamp and upon uploading the current time stamp is automatically put in. I'm having some issue in that the timestamp being put in is not in my timezone so when working with it later, i run into problems. Using this auto feature is not a must so here is teh question.... 1) is there a way to alter the "local" timezone in phpmyadmin? 2) if not, i can input the timestamp manually upon insertion but i still run into time zone problems, so how can i get a timestamp with my local time on it? currently i'm getting a time stamp for the west coast of canada while i live in central canada, so I'm two hours ahead. basic rundown...need time from computer, not server Quote Link to comment https://forums.phpfreaks.com/topic/83056-solved-timestamp-issues-in-phpmyadmin/ Share on other sites More sharing options...
revraz Posted December 24, 2007 Share Posted December 24, 2007 This isn't a issue with PHPMyadmin, it has to do with where the mysql database server resides. What I do is have an offset in my user's profile, and just subtract/add to the time based on that offset when I display it. You could also use a timezone setting if you use PHP 5. Quote Link to comment https://forums.phpfreaks.com/topic/83056-solved-timestamp-issues-in-phpmyadmin/#findComment-422468 Share on other sites More sharing options...
bluebutterflyofyourmind Posted December 24, 2007 Author Share Posted December 24, 2007 alright thanks. i'll figure out the timezone stuff. Quote Link to comment https://forums.phpfreaks.com/topic/83056-solved-timestamp-issues-in-phpmyadmin/#findComment-422473 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.