-
AuthorPosts
-
August 31, 2011 at 10:48 pm #168043
Today I have noticed that actual date in left upper corner of the template is displaying wrong. Day (as number and as short name) is from yestreday 31 ŚR, but now we have 01 CZW. Name of the month WRZ is correct.
I don’t know how to correct this…
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
September 1, 2011 at 4:09 am #409958Thats is a Last updated Date not the current date. Do you want it to show current date ? please advice
September 1, 2011 at 4:51 pm #410064There must be some kind of misunderstanding…
First of all I’m not talking about last update date (2). I’m talking about current date (1). It seems to me, that I have never seen in box (1) other than current date. Until today, few minutes after midnight. Now the date is OK.
Let me explain it step by step…
Yesterday there was correct date 31 SIER 2011 (ŚR) = 31 AUG 2011 (WED). About 20 minutes after midnight there was strange date: 31 WRZ 2011 (ŚR) = 31 SEPT 2011 (ŚR) but in reality it was 01 WRZ 2011 (CZW) = 01 SEPT 2011 (Thu). Now (18:22) date shown in this box is correct.
And another important thing: no matter if this box is showing actual or last update date, but THERE IS NO 31 September in calendar. This is not all… how it possible that last update date could display date 30 days in the future from now?
So the problem is that for some time after midnight this date was showing WRONG date, date that you even can’t find in the calendar.
For me it looks like Month was updated correctly, but change in number and name of the Day was delayed one or more hours. I don’t know exactly how long it was delayed because I went to bed.
September 2, 2011 at 7:08 am #410195On Friday after midnight once again the Day (number and name) was incorrect (the same as day earlier). Now, at 9 in the morning Day is correct. Who knows why? Who knows how to correct this? I want correct Day exactly when in begins, not hour or two later 😉
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
September 2, 2011 at 7:28 am #410198Hi,
You try replace this code from /templates/ja_teline_iv/blocks/topbar.php
<p class="ja-day clearfix">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('D')))."</span>";
echo "<span class="month">".date ('m')."</span>";
echo "<span class="date">".date ('d')."</span>";
echo "<span class="year">".date ('Y')."</span>";
?>
</p>
with
<p class="ja-day clearfix">
<?php
echo "<span class="day">".JText::_(strtoupper(JHTML::date('now', 'd')))."</span>";
echo "<span class="month">".JHTML::date('now', 'm')."</span>";
echo "<span class="date">".date ('d')."</span>";
echo "<span class="year">".date ('Y')."</span>";
?>
</p>
– Delete all of files of /cache and /t3-assets folderSeptember 3, 2011 at 12:43 pm #410376I have replaced my code with yours, but
1) date is in American format (m-d-y) – earlier it was Polish: d-m-y
2) now I have number of the month in date, earlier it was short name (in Polish language od course)
3) when mouse was over the date in place of year there was short name of the day (in Polish language) – now I have number of the day in the month.Can you do some modifications to this code, so I will have the same system od date (number od the day – short name of the month – year + short name of the day in place of the year)?
September 3, 2011 at 12:47 pm #410378I have made some modifications to your code:
<p class=”ja-day clearfix”>
<?php
echo “<span class=”day”>”.JText::_(strtoupper(JHTML::date(‘now’, ‘D’))).”</span>”;
echo “<span class=”date”>”.date (‘d’).”</span>”;
echo “<span class=”month”>”.JHTML::date(‘now’, ‘M’).”</span>”;
echo “<span class=”year”>”.date (‘Y’).”</span>”;
?>
</p>Now I have the date as earlier. After midnight I will check if problem with wrong day will occur once again…
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
September 4, 2011 at 5:18 pm #410519If you have still the problem, you inform me. I will help you to solve it.
September 4, 2011 at 10:52 pm #410596Now its 50 minutes after midnight. Still we have Day (as number and as short name) from yesterday. Tonight I have to work till morning, so I will check when the Day will change to the correct 05 PN (PoNiedziałek = Monday).
September 4, 2011 at 11:09 pm #410600One hour and 5 minutes afret midnight…
Number of the Day is still from yesterday (04) but short name od the Day is correct now PN (Monday). Next info few minutes after 2 am.
September 5, 2011 at 12:08 am #410607It’s 2:06 am. Still I have wrong day number (04) and correct short name of the day.
September 5, 2011 at 12:18 am #410610Well… after deleting all files in t3-assets foder and all files in cache folder, finally the number of the Day is now correct.
But I don’t want to do this everyday one minute after midnight 😉
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
September 5, 2011 at 3:33 pm #410790You replace
<p class="ja-day clearfix">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('D')))."</span>";
echo "<span class="month">".date ('m')."</span>";
echo "<span class="date">".date ('d')."</span>";
echo "<span class="year">".date ('Y')."</span>";
?>
</p>with
<p class="ja-day clearfix">
<?php
echo "<span class="day">".JText::_(strtoupper(JHTML::date('now', 'D')))."</span>";
echo "<span class="month">".JHTML::date('now', 'm')."</span>";
echo "<span class="date">".JHTML::date('now', 'd')."</span>";
echo "<span class="year">".JHTML::date('now', 'Y')."</span>";
?>
</p>
2 users say Thank You to khoand for this useful post
September 5, 2011 at 6:52 pm #410815OK. I will do it. There is 3 hours to midnight in Poland, so we can check this soon. 😉
Thanks!
September 5, 2011 at 10:06 pm #410841Day (number and short name) has changed 1 or 2 minutes after midnight. For me it’s OK 🙂
Thanks for help.AuthorPostsThis topic contains 16 replies, has 3 voices, and was last updated by khoand 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum