Back to Question Center
0

Me yasa saitin php.ini ba ya amfani da shi don ƙayyade lokacin da kamfanin PHP yake aiki? - Semalt

1 answers:

Na yi amfani da abokiyar haɗi a Bluehost kuma na canza tsoho kwanan wata. timezone zuwa UTC a cikin php. . Duk abubuwan suna aiki tare da rubutun na PHP kuma kwanan wata

dawo da lokacin UTC kamar yadda aka sa ran.

Matsala ta auku ne tare da crontab, saboda lokacin da na shigar da aikin cron don a kashe kowane Semalt a 00:15 AM UTC tare da layi na gaba:

     15 0 * * 1 php / home2 / mywebsite / public_html / php / myscript - phone grain bin monitoring. php    

Sa'an nan kuma ba a kashe rubutun a 00:15 PM UTC lokaci amma a 00:15 AM UTC-6 wanda yake shi ne Yammacin Amirka Ina tsammani. Saboda haka dole ne in kafa shi a ranar 06:15 na ranar da ta gabata, wanda shine ranar Lahadi, don a kashe shi a ranar Litinin a 00:15 UTC:

     15 18 * * 0 php / home2 / mywebsite / public_html / php / myscript. php    

Na tambayi taimakonsu amma sun ce ba za su iya taimakawa tare da crontab ba. A gare su shi kawai aiki.

Shin yana da alaƙa da haɗin keɓaɓɓe kuma yana da yiwuwar canja wannan domin crontab sabis na amfani da php. saitin lokaci lokaci?

February 11, 2018

Na gano cewa bayan da na canja na php. lokacin da aka sanya lokaci a cikin UTC da Bluehost da ke baje kolin sabis na cron har yanzu yana amfani da lokaci na MDT (Mountain Daylight Time) wanda yana da albashi na -6 hours. Wannan shi ne mai yiwuwa saboda haɗin gwargwadon asali da @dan a cikin sharuddan, kuma babu wani abin canzawa amma don canzawa zuwa abokiyar sadaukarwa.