Publish next day

Yuki - February 26, 2009 - 13:54
Project:Scheduler
Version:6.x-1.3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am using Schedular module but the problem is after setting date the article is published on next day but I set date suppose today. My Drupal date is ok - Japan time. Can any body has solution.

#1

Eric Schaefer - February 26, 2009 - 17:19
Status:active» postponed (maintainer needs more info)

Can please post the time you typed into the publish-on-filed and the time the node was actually published?

#2

Yuki - February 27, 2009 - 23:17

Time fomrat exactly whats written under text box(when we write the time) and it is publishing next day...

#3

Eric Schaefer - April 18, 2009 - 14:35

To analyze this further I need to know the exact date and time you enter into the publish_on-field and the exact date and time the article is actually published.

#4

Eric Schaefer - April 18, 2009 - 20:32

Another question: When/how often does your cron run?

#5

Yuki - April 22, 2009 - 08:49

Below time format I used:
2009-04-22 17:44:27 in the Publish on text box.

After putting dates, I run the cron manually and wanted to check whether it will publish after 5 minutes later.

But no output.

#6

Eric Schaefer - April 22, 2009 - 14:53
Status:postponed (maintainer needs more info)» active

That ist strange. We need to check some settings.
Please login with your administrator account and go to /scheduler/timecheck and post the output of that page here.

#7

Yuki - April 23, 2009 - 00:35

Output is attached.

Just to inform you yesterday evening the artcle/page which I have posted this morning when I logged in as an admin I got that article in my home page but I scheduled the time yesterday evening (after 5 min later generation of that article/page).

Again,

According to message:
"UTC should match UTC London Time and the localtime should be the time where you are."
Seems local time is ok but how to match UTC time.
I am using xampp and Windows 2003 server.

AttachmentSize
timecheck.JPG 18.42 KB

#8

Eric Schaefer - April 23, 2009 - 06:00

Usually the sould run on UTC time which is 9h later as Japan (JST). I think we can find a workaround to help you out. I will need to think about it. Stay tuned....

#9

Yuki - April 23, 2009 - 08:22

Thanks.
Thinking: Does it ralted with apache's php.ini 's time settings or any other time settings of drupal or server?

#10

Eric Schaefer - April 23, 2009 - 17:20

It looks like your server reports UTC/GMT (Greenwich/London time) as your local time zone.
I do not know much about windows servers but maybe we can go through some settings to isolate the problem:
(The questions assume you have access to the server settings...)

- What is the time zone setting of your server (Control panel -> date and time -> Tab "time zone")? Is it set to JST (GMT+09:00 Osaka, Sapporo, Tokio) or is it set to GMT?
- What time is your server showing in the system tray. Is it the real time at your place?

#11

Yuki - April 24, 2009 - 02:08

First answer of your questions:
Yes I have access to the erver settings.
Yes it is set to to JST (GMT+09:00 Osaka, Sapporo, Tokio)
In the system tray its showing the current local time and its a real time.

I think I got a solution (but not proper) need to run cron after settings time (what I set in the page) which is irritating means schedular is working when after scheduled passing time and run the cron(not setting time to the page and run the cron):

What I did:
in the php.ini file: (directory: apache/bin)
I put below timezone "Asia/Tokyo"
Default was nothing commented and nothing.
--------------------
[Date]
; Defines the default timezone used by the date functions
date.timezone = "Asia/Tokyo"
---------------------------------
Also there is another timezone related dll file indicated in php.ini
;extension=php_timezonedb.dll
Its disable default. I dont know whether I need to comment out this one or not.

But the questions are:
1) Why I need to run cron (I have poormanscron) manullay after setting the time in the page otherwise not showing the page?
2) Whats the functionality of ;extension=php_timezonedb.dll ???
3) 2009-04-24 10:46:37.
Above is the time format. May I need to put fullstop at the end everytime????

#12

Eric Schaefer - April 24, 2009 - 05:55
  1. I don't know if I understand you right, but I think I know what the problem is:
    • Scheduler works like this: When cron runs scheduler checks if there are unpublished nodes (pages/articles) that have a publish_on time in the past. Scheduler will then publish those nodes. Suppose you run cron every full hour and you set the publish_on time for your article to 9:30. When cron runs it calls scheduler and scheduler checks if there are scheduled nodes with publishing time in the past. Now cron runs at 9:00 and there are no scheduled articles as described. Then is runs again at 10:00 and scheduler publishes the article because it is a) unpublished and b) its scheduled time is in the past. There is no other way. If you would like to have finer publishing granularity you have to run cron more often, like every 15 minutes. but then still a article scheduled for 9:10 will not be visible until 9:15.
    • Poormans cron only runs when your webpage is invoked by a user. Everytime simebody calls a page of your drupal installation poormanscron checks if it is time to invoke cron. If nobody uses your page, cron will not run. If you have access to your server you can install a real cron process (see http://drupal.org/node/31506).
  2. I don't know.
  3. No, only date and time.

#13

Yuki - April 24, 2009 - 06:51

Thanks.

#14

Eric Schaefer - May 3, 2009 - 16:54
Status:active» fixed

Apparently fixed.

#15

Yuki - May 4, 2009 - 02:30

Thnaks and waiting.

#16

Eric Schaefer - May 4, 2009 - 06:25

Waiting?

#17

Yuki - May 4, 2009 - 14:33

fixed thanks.

#18

System Message - May 18, 2009 - 14:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.