Lucas
asked 12 years ago

When I write a post at dicedown.com to test some things I noticed that I post am article at 10:00pm pacific and the published version tells people I released the article 7 hours ago.

 

i tried a test comment and it said the comment was 17 hours old after I had just made the comment a minute ago. Why is the theme not using the pacific time zone? But is instead way off?

i really want to start using this theme but there are so many little things thadoesn’t seem to work.

I wonder if I should just send in an email with all my questions. As it is frustrating trying to piece all the answers together. The theme looks amazing and I just want it to work.

5 Answers
ElleryG
answered 12 years ago

Dominic, this is NOT resolved. Please fix the code.

DominicStaff
answered 12 years ago

Hi !

– You can login Dashboard > settings > General > Timezone > the here you can select GMT for site of you.

View post on imgur.com

Regards,

Dominic

Lucas
replied 12 years ago

… GMT is not going to solve this. It’s 7 hours behind PST so that would make it 8hours behind GMT.

ElleryG
answered 12 years ago

Yup, I had the same problem.

Lucas
replied 12 years ago

Yeah the comment post is even more off. In trying to search the Internet to see of there is an answer amongst other themes that use bootstrap.

DominicStaff
answered 12 years ago

Hi !

you can go to line 287 of file functions.php .
add below
$post = get_post();
if( $post ) {
$from = $post->post_date;
}

Regards,

Dominic

ElleryG
replied 12 years ago

Hi Dominic,

ElleryG
replied 12 years ago

I tried that and all the post dates were set to January 1, 1970. Here’s what that section of the file looks like:

Jennifer N
answered 12 years ago

Hi

– You can login Dashboard > settings > General > Timezone > here you can select GMT for site of you.

http://imgur.com/hWAlHTH

Regards,

Jennifer

Lucas
replied 12 years ago

I’ll try the coding Dominic has suggested. I love in Vancouver and a lot of my readers are west coast.

Lucas
replied 12 years ago

I have always had my time zone set properly for Pacific standard time (GMT-7) and i would like to keep it that way and not use GMT.

ElleryG
answered 12 years ago

Hi Dominic,

I tried that and all the post dates were set to January 1, 1970. Here’s what that section of the file looks like:

 

if ( empty($to) )
$post = get_post();

if( $post ) {
$from = $post->post_date;
}
$to = time();
$diff = (int) abs($to – $from);

Lucas
replied 12 years ago

Yeah that didn’t work for me either..

TempoMedia
answered 12 years ago

Yes, this is NOT resolved. The code needs to be fixed. It is a fundamental issue with the template.

Gregory Ortiz
answered 12 years ago

Why is this marked ‘Resolved’ when it is not?

DominicStaff
answered 12 years ago

Hi !

-You can download the following folder. override in your theme folder.
Best to avoid the worst case, your backup to a new version.

http://www.mediafire.com/?dq5eozhsqyeu1ky

Regards,

Dominic

Powered by DW Question & Answer Pro