Перейти к контенту
  • 0

Дата & Время проблема


Вопрос

Я искал до открытия этой темы. Есть ничто, связанное этим вопросом.

 

В тематике взгляд, есть номера, как "1244190364", а не время и дату публикации.

 

Некоторые говорят, что это время Unix. Как я могу это исправить?

Можно ли преобразовать дату и время от времени Unix для нормальной дату и время?

 

Можно ли мне помочь? Это очень важно для меня.

 

Спасибо заранее.

Ссылка на комментарий
Поделиться на других сайтах

Рекомендуемые сообщения

  • 0

habahaba

 

Благодарю Вас за комментарий, но я хочу, чтобы решить эту проблему с точки зрения тематики.

Я сказал, что в моем форуме в теме Посмотреть все время и дата время в UNIX.

Я хочу их все, чтобы быть в нормальном режиме.

Я думаю, что должно быть что-то сделать из панели управления администратора или из MyPHPAdmin

 

date('d-m-Y H:i:s', '1244190364')

 

Я думаю, вы преобразовать только одно время Unix. Правильно?

Ссылка на комментарий
Поделиться на других сайтах

  • 0

Проблема в том, что я думаю, что все ОК в панели управления

настройках в админцентре.

где именно?

 

Вы можете мне помочь? Спасибо заранее.

Ссылка на комментарий
Поделиться на других сайтах

  • 0

Admin CP -> Settings -> Date and time.

 

Или вам по-русски проще?

Ссылка на комментарий
Поделиться на других сайтах

  • 0

Sannis

 

Admin CP > TOOLS & SETTINGS > Date & Time Formats >

 

Вы имеете в виду это да? и что я должен делать там?

 

Моя конфигурация такая :

 

Short time format "jS F Y - h:i A"

Join date time format "j-F y"

Long time format "M j Y, h:i A"

Relative time format "{--}, h:i A"

 

Или вам по-русски проще?

все ОК

Ссылка на комментарий
Поделиться на других сайтах

  • 0

What happens if you switch off (no) "Use relative" radio-button?

 

Open you ./sources/ipsclass.php file, find there

		//-----------------------------------------
	// Time options
	//-----------------------------------------

	$this->time_options = array( 'JOINED' => $this->vars['clock_joined'],
								 'SHORT'  => $this->vars['clock_short'],
								 'LONG'   => $this->vars['clock_long'],
								 'TINY'   => isset($this->vars['clock_tiny']) ? $this->vars['clock_tiny'] : 'j M Y - G:i',
								 'DATE'   => isset($this->vars['clock_date']) ? $this->vars['clock_date'] : 'j M Y',
							   );

and add after than

print "{$this->vars['clock_joined']} {$this->vars['clock_short']} {$this->vars['clock_long']} {$this->vars['clock_tiny']} {$this->vars['clock_date']}";

Update topic page and post here text on the top of it.

 

This is interesting problem... It may be caused corruption of forum files, bad distribution or problem with server configuration. Maybe you have some information in system error log? What were you doing before this problem appeared?

Ссылка на комментарий
Поделиться на других сайтах

  • 0
What happens if you switch off (no) "Use relative" radio-button?

Sorry, I didn't understand what you mean. where can I find "Use relative radio-button" ?

 

Open you ./sources/ipsclass.php file, find there

		//-----------------------------------------
	// Time options
	//-----------------------------------------

	$this->time_options = array( 'JOINED' => $this->vars['clock_joined'],
								 'SHORT'  => $this->vars['clock_short'],
								 'LONG'   => $this->vars['clock_long'],
								 'TINY'   => isset($this->vars['clock_tiny']) ? $this->vars['clock_tiny'] : 'j M Y - G:i',
								 'DATE'   => isset($this->vars['clock_date']) ? $this->vars['clock_date'] : 'j M Y',
							   );

and add after than

print "{$this->vars['clock_joined']} {$this->vars['clock_short']} {$this->vars['clock_long']} {$this->vars['clock_tiny']} {$this->vars['clock_date']}";

 

On the top of my forum appeared this "j-F y jS F Y - h:i A M j Y, h:i A " Did you want this?

 

This is interesting problem... It may be caused corruption of forum files, bad distribution or problem with server configuration. Maybe you have some information in system error log? What were you doing before this problem appeared?

 

During that problem I changed hosting 2 times. I didn't really remember what was I doing for about 2 years ago. It's very long time that I have this problem and nowadays I really need to fix it.

Ссылка на комментарий
Поделиться на других сайтах

  • 0
Sorry, I didn't understand what you mean. where can I find "Use relative radio-button" ?

On the Admin CP > TOOLS & SETTINGS > Date & Time Formats page, near the "Relative time format" row.

 

Uh... You have right settings, initialization also working right. Can you post you skin_topic -> RenderRow template here?

 

This problem appeares only in topics pages or in all forum pages?

Ссылка на комментарий
Поделиться на других сайтах

  • 0
On the Admin CP > TOOLS & SETTINGS > Date & Time Formats page, near the "Relative time format" row.

 

When I switch it off (on) as you said, It happens nothing. I still have the same problem.

 

Can you post you skin_topic -> RenderRow template here?

Admin CP > LOOK & FEEL > Skin Name > Edit Template HTML > Topic View > RenderRow

Did you mean this? If yes, then of course I can post it.

 

This problem appeares only in topics pages or in all forum pages?

 

This problem appears only in topics view. In the other places are all right for example in the board index or in the user CP and so on all date and time are correct.

Ссылка на комментарий
Поделиться на других сайтах

  • 0
Admin CP > LOOK & FEEL > Skin Name > Edit Template HTML > Topic View > RenderRow

Did you mean this? If yes, then of course I can post it.

Yes.

 

If this is only topic problem, you can check this line exists in file ./sources/action_public/topics.php:

$row['post_date']	 = $this->ipsclass->get_date( $row['post_date'], 'LONG' );

Ссылка на комментарий
Поделиться на других сайтах

  • 0
$row['post_date'] = $this->ipsclass->get_date( $row['post_date'], 'LONG' );

I could not find this line in my ./sources/action_public/topics.php then I changed topics.php file with fresh one and it helped me. Now the time shows correct. It was very easy to guess and fix this but I could not.

Sannis, thank you.

 

Are you going to say or advise me something about changing the ./sources/action_public/topics.php? will it cause any other problems?

If not, then thank you again.

Ссылка на комментарий
Поделиться на других сайтах

  • 0
Are you going to say or advise me something about changing the ./sources/action_public/topics.php? will it cause any other problems?

Only if you installed modifications affecting topics.php. Otherwise, you have performed the correct action.

 

P.S. If you found this forum in the Internet yourself or see any recomendations? It is great that we sometimes have questions from non-ex-ussr courtries here :D

P.P.S. Has someone of english-speaking already written a well-functioning AJAX fast reply modification?

Ссылка на комментарий
Поделиться на других сайтах

  • 0
If you found this forum in the Internet yourself or see any recomendations

Will I give any recommendations? Of course yes.

Has someone of english-speaking already written a well-functioning AJAX fast reply modification?

I really didn't hear anything relate AJAX fast replay modification.

Ссылка на комментарий
Поделиться на других сайтах

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить на вопрос...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.