A PHP application may display dates in the wrong time zone even when the hosting server is working correctly. Set the time zone in the application or in the PHP configuration used by the affected website.
- Check the application’s own regional or time-zone setting first. Application-level settings are usually the safest choice.
- If the application relies on PHP’s default, use cPanel’s MultiPHP INI Editor when available and set
date.timezoneto an IANA value such asAsia/Dhaka. - If the editor is unavailable, ask hosting support which per-directory configuration method is supported. Do not change server-wide settings from a shared account.
- Clear the application cache and check a newly generated date. Compare it with the expected local time and check whether the application stores dates in UTC.
Use one consistent time-zone strategy: storing dates in UTC and converting them for display avoids many daylight-saving and cross-region issues. Remove any temporary diagnostic scripts after testing.
BOSS Solution: For account-specific guidance, contact our support team through the Client Area.
হোস্টিং সার্ভার সঠিকভাবে কাজ করলেও একটি পিএইচপি অ্যাপ্লিকেশন ভুল সময় অঞ্চলে তারিখ প্রদর্শন করতে পারে। অ্যাপ্লিকেশনে বা প্রভাবিত ওয়েবসাইট দ্বারা ব্যবহৃত PHP কনফিগারেশনে সময় অঞ্চল সেট করুন।
- প্রথমে অ্যাপ্লিকেশনের নিজস্ব আঞ্চলিক বা টাইম-জোন সেটিংস পরীক্ষা করুন। অ্যাপ্লিকেশন-স্তরের সেটিংস সাধারণত সবচেয়ে নিরাপদ পছন্দ।
- যদি অ্যাপ্লিকেশনটি PHP-এর ডিফল্টের উপর নির্ভর করে, cPanel ব্যবহার করুন মাল্টিপিএইচপি আইএনআই এডিটর যখন উপলব্ধ এবং সেট
date.timezoneএকটি IANA মান যেমনAsia/Dhaka. - সম্পাদক অনুপলব্ধ হলে, হোস্টিং সমর্থন জিজ্ঞাসা করুন কোন প্রতি-ডিরেক্টরি কনফিগারেশন পদ্ধতি সমর্থিত। শেয়ার্ড অ্যাকাউন্ট থেকে সার্ভার-ওয়াইড সেটিংস পরিবর্তন করবেন না।
- অ্যাপ্লিকেশন ক্যাশে সাফ করুন এবং একটি নতুন উত্পন্ন তারিখ পরীক্ষা করুন। প্রত্যাশিত স্থানীয় সময়ের সাথে এটির তুলনা করুন এবং অ্যাপ্লিকেশনটি UTC-তে তারিখগুলি সঞ্চয় করে কিনা তা পরীক্ষা করুন৷
একটি সামঞ্জস্যপূর্ণ টাইম-জোন কৌশল ব্যবহার করুন: UTC-তে তারিখগুলি সংরক্ষণ করা এবং প্রদর্শনের জন্য তাদের রূপান্তর করা অনেক দিবালোক-সংরক্ষণ এবং ক্রস-অঞ্চল সমস্যা এড়িয়ে যায়। পরীক্ষার পর কোনো অস্থায়ী ডায়গনিস্টিক স্ক্রিপ্ট সরান।
BOSS Solution: অ্যাকাউন্ট-নির্দিষ্ট নির্দেশনার জন্য, এর মাধ্যমে আমাদের সহায়তা দলের সাথে যোগাযোগ করুন ক্লায়েন্ট এলাকা.