vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

y2ksw 09-30-2016 11:30 AM

In addition to what I said before, the RTC may or may not store the system time in UTC. I have several computers which run alternating Windows and Linux, and on a few I had to use specific flags in Linux in order to keep the time always the same between switching OS. Since it is a hardware setting, there is no guarantee that one setting working on one computer will do also on another.

Bulent Tekcan 09-30-2016 12:09 PM

I tested now here is the result

mysql> SELECT NOW(), UTC_TIMESTAMP();
+---------------------+---------------------+
| NOW() | UTC_TIMESTAMP() |
+---------------------+---------------------+
| 2016-09-30 17:12:12 | 2016-09-30 14:12:12 |
+---------------------+---------------------+
1 row in set (0.00 sec)

It is not 10 hour different

y2ksw 10-01-2016 07:37 AM

Quote:

Originally Posted by Bulent Tekcan (Post 2576437)
I tested now here is the result

mysql> SELECT NOW(), UTC_TIMESTAMP();
+---------------------+---------------------+
| NOW() | UTC_TIMESTAMP() |
+---------------------+---------------------+
| 2016-09-30 17:12:12 | 2016-09-30 14:12:12 |
+---------------------+---------------------+
1 row in set (0.00 sec)


It is not 10 hour different

As for you question (before you edited this one), the server cron jobs usually execute at UTC, but it depends also on how the time is stored in RTC. On my backup server, time in RTC is stored in local time, and thus runs at local time. The servers where I have the hosting running, store the RTC time in UTC, and run at UTC, while the "apache" user runs in Europe/Rome timezone and thus, vbulletin cron runs at that time. This timezone is also default for the mysql users, but my vary if the system administrator wishes.

This classic example makes clear that things can become pretty complex and explains also why vbulletin stores the current time in the constant TIMENOW, relative to the "apache" user. This variable may be then adjusted to specific needs, but this plugin does nothing to it, because it cannot make a choice.

So eventually I could add a parameter in the settings which allows you to change this offset manually, but then there will be quite some user having problems with their timing at another level, which is impossible to guess.

As long as there is no such parameter, there is no need for me to solve server side issues. If there was, I would have every day 10 questions how to make timing work properly, which I can't answer, because every server setting is different.

Taking all possible variables, there are 1*2*3*4=24 legit settings (server, mysql, apache, vbulletin) which would directly influence the behavior of any given setting at one place or another.

I hope I have answered your question and the final, short reply is: "There will be no option to set the offset manually" :)

Bulent Tekcan 10-01-2016 02:50 PM

Finaly problem solved :) My php.ini timezone was set Los Angeles time zone. It seems 10 hour different from here. Now I set Europe/Istanbul and problem gone :)

Thanks for your support

Regards

y2ksw 10-01-2016 07:02 PM

Quote:

Originally Posted by Bulent Tekcan (Post 2576478)
Finaly problem solved :) My php.ini timezone was set Los Angeles time zone. It seems 10 hour different from here. Now I set Europe/Istanbul and problem gone :)

Thanks for your support

Regards

Oh, that adds another element to the formula :D

Thank you for working out the problem, which will be helpful for all other users who have asked this question!

Bulent Tekcan 10-01-2016 07:22 PM

1 Attachment(s)
Quote:

Originally Posted by y2ksw (Post 2576489)
Oh, that adds another element to the formula :D

Thank you for working out the problem, which will be helpful for all other users who have asked this question!

Yes :up:

I have other question about the List screen. Is it possible to add start and end time to column like my attachment ? Because I cannot see start and end time in list. If I have 50 banners I'll be crazy :)

https://vborg.vbsupport.ru/attachmen...1&d=1475356866

Regards

y2ksw 10-02-2016 09:53 AM

Quote:

Originally Posted by Bulent Tekcan (Post 2576490)
Yes :up:

I have other question about the List screen. Is it possible to add start and end time to column like my attachment ? Because I cannot see start and end time in list. If I have 50 banners I'll be crazy :)

https://vborg.vbsupport.ru/attachmen...1&d=1475356866

Regards

Please use phpmyadmin for extended listings :D

rhody401 10-03-2016 06:08 PM

Thanks for posting this. Mine always adjusts it one hour every time I re-save a setting in this mod, and fixing it in the php file sounds like the perfect fix :) Great! Love this code add on

Bulent Tekcan 10-04-2016 04:00 AM

Quote:

Originally Posted by rhody401 (Post 2576535)
Thanks for posting this. Mine always adjusts it one hour every time I re-save a setting in this mod, and fixing it in the php file sounds like the perfect fix :) Great! Love this code add on

Yes, this is the trick :up: but why this product detect php default time I don't understand :)

y2ksw 10-04-2016 07:03 AM

Quote:

Originally Posted by Bulent Tekcan (Post 2576558)
Yes, this is the trick :up: but why this product detect php default time I don't understand :)

It doesn't, it takes what it gets :)


All times are GMT. The time now is 05:14 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.03200 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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