Sun Mon Tue Wed Thu Fri Sat → Mon Tue Wed Thu Fri Sat Sun - wordpress

I have purchased a Theme in wp that is using https://fullcalendar.io/
Current Week Structure is → Sun Mon Tue Wed Thu Fri Sat, but
I want it to be like → Mon Tue Wed Thu Fri Sat Sun
This is the theme Demo from where I have purchased Click Here →
The theme owner aid contact to https://fullcalendar.io/, but on their website I find that I have to seek StackOverflow for the support.

You probably have to make a change to the javascript of the theme to accomplish this. Check out the file events.js in the js directory of your theme. Starting on line 48 try replacing this code:
jQuery('#event-calender-widget').fullCalendar({
aspectRatio:1,
events: calenderAjax.events,
With:
jQuery('#event-calender-widget').fullCalendar({
aspectRatio:1,
firstDay:1,
events: calenderAjax.events,
Good luck!

you may take a look at firstDay option of full calendar

Related

c# SyndicationItem pubdate to GMT

I've been trying to produce the an RSS feed using the System.ServiceModel.Syndication library..
At the moment it's displaying AEST with +1000 (e.g. Thu, 23 Apr 2015 09:44:29 +1000) but i need it to be produced as GMT (e.g. Sat, 07 Dec 2013 19:39:04 GMT)
Is there a way to set or force the date format for PublishDate property in the SyndicationItem? or defaulted to the server time setting ?

Moment time shows midnight, _i and _d properties do not match [duplicate]

This question already has answers here:
Moment.js internal object what is "_d" vs "_i"
(2 answers)
Closed 6 years ago.
I'm using moment.js in my web application and encountered a bug where the time on many objects change to midnight at some point. I'm still trying to hunt down what, if anything triggers this change, but looking at one of the moments, I noticed the _i property shows the original / correct time.
Below is the developer console output of one of the moments in question, mm
_d: Thu Apr 02 2015 00:00:00 GMT-0400 (EDT)
_f: "YYYY-MM-DDTHH:mm:ssZ"
_i: "2015-04-02T12:10:43-04:00"
_isAMomentObject: true
_isUTC: false
_isValid: true
_locale: Locale
_pf: Object
_tzm: -240
mm.toISOString()
// "2015-04-02T04:00:00.000Z"
moment(mm._i).toISOString()
// "2015-04-02T16:10:43.000Z"
What does the _i represent, and why doesn't it match the string output?
It turns out the bug was caused by a combination of 2 bad assumptions I had
calling startOf() mutates the moment, which I did not realize
the Immutable data structure I'm using ignores Objects with custom prototypes, so the moment objects were left mutable
The result was that another part of the application was able to mutate moments that I expected to be immutable
To answer my question though, I found the following
_i is the input when the moment object was originally created, and does not appear to change
_d is a Date object representing the date value after any mutations
mm = moment("2015-04-02T12:10:43-04:00")
mm._i // "2015-04-02T12:10:43-04:00"
mm._d // Thu Apr 02 2015 12:10:43 GMT-0400 (EDT)
mm.startOf('day')
mm._i // "2015-04-02T12:10:43-04:00"
mm._d // Thu Apr 02 2015 00:00:00 GMT-0400 (EDT)

autoit3 _FileListToArray returns file order different than shown in Windows folder

How can I return a list of file names in a folder in the same order as shown in Windows with AutoIt3?
Folder content as shown in Windows Explorer
_02_02_2007 12_37_45 PM.bin
1D22WP101.bin
1D23DWTB2.bin
1secrate1 Thu Feb 21 2008 021849 PM.bin
02_02_2007 12_37_45 PM.bin
2L9SS1.BIN
3L14SS1.BIN
When using
_FileListToArray($sDirectory, "*.bin")
I get a different sequence for two files which contain underscores (marked with ****)
7
****02_02_2007 12_37_45 PM.bin****
1D22WP101.bin
1D23DWTB2.bin
1secrate1 Thu Feb 21 2008 021849 PM.bin
2L9SS1.BIN
3L14SS1.BIN
****_02_02_2007 12_37_45 PM.bin****
I've tried sorting with _FileListToArrayRec which changes the order but still does not match Windows
_FileListToArrayRec($sDirectory, "*.bin", $FLTAR_FILES, $FLTAR_NORECUR, $FLTAR_SORT)
7
****_02_02_2007 12_37_45 PM.bin****
****02_02_2007 12_37_45 PM.bin****
1D22WP101.bin
1D23DWTB2.bin
1secrate1 Thu Feb 21 2008 021849 PM.bin
2L9SS1.BIN
3L14SS1.BIN
Can anybody help how to return a list of file names in AutoIt3 that matches the order seen in Windows?
Thanks for your help!
David
Have you tried _ArraySort() function? In my case it helps :)

ps utility does not show the year a process was started

I am doing some work on a fairly old system and need to know when a couple of processes started. When I use "ps -ef" one says October 18 and the other March 23. We haven't got to October 18 this year so I'm not sure if this is October 18 last year or the previous year. The uptime command is showing 2419 days (6.6 years!) so it's possible the Oct 18 is from earlier than 2012. This is a HP-UX system. I have done a bit of googling and none of the answers I came across worked, eg ps -o, looking in the /proc dir.
cfgmgr 9947 9943 3 Mar 23 ? 6831:32 /home/cfgmgr/bin/snmpagt
root 24338 1 0 Oct 18 ? 2628:13 /usr/sbin/snmpdm -tcplocal
PS can only show the date because as per PS documentation at MAN page
'Only the year will be displayed if the process was not started the same year ps was invoked, or "mmmdd" if it was not started the same day, or "HH:MM" otherwise.'

setWeek year detection

Have a look at the year after setWeek
d = Date.today()
Wed Dec 26 2012 00:00:00 GMT+0000 (GMT Standard Time)
d.getWeek()
52
d.setWeek(52)
Mon Dec 23 2013 00:00:00 GMT+0000 (GMT Standard Time)
Anyone knows what this is about? Have I misinterpreted how the setWeek function should work?
I have found an issue in the datejs tracker with this same problem. It's from 2011, though it's still marked as new: setWeek issue
So regarding yor question of "Have I misinterpreted how the setWeek function should work?" I would say that it's a bug in the jdate code.
If you have a look at the datejs source code you will see that setWeek will always move to the Monday of the target week n:
Date.prototype.setWeek = function (n) {
return this.moveToDayOfWeek(1).addWeeks(n - this.getWeek());
};
see: datejs: svn/trunk/src/core.js

Resources