Multiple timezones time output in Atlassian Confluence - confluence

I need to output time in different timezones on the Confluence page. Does anyone know if there already is such macro or some workaround to achieve this feature.

I am trying to do the same thing. I found I can get the local one with a macro that has this line:
$action.dateFormatter.formatGivenString("HH:mm", $content.currentDate)
I would ask this under https://answers.atlassian.com.

Related

Issues with defining dates in Google App Script ~new Date()~

So, I've been having some issues with converting strings into dates with Google App Script for Google Sheets, but now I actually know the first issue to tackle:
No matter what I do, I'm unable to call the class Date() (within Google App Script for Google Sheets).
It apparently does not recognize it as a callable class, and so I cannot define dates within any codes.
Has anybody faced a similar issue? If so, how should I proceed?
Here you'll find some good documentation on how to use date functions on apps script, basically, it uses JavaScript build-in date functions:
Specific documentation of Apps Script Date function:
Google developers: Working with Dates and Times on Apps Script
Documentation on JavaScript Date function:
MDN Web Standard docs: JavaScript build-in Date function

Expand-all for Confluence UI-Expand macro

I've poked around Google and the Atlassian forums about this, and have not found an answer to this anywhere.
I'm trying to come up with an "Expand All" button for the UI Expand (important: not the regular Expand) macro.
I found this link in the Atlassian forum. I've been messing around with it, but I haven't been able to get it to work in my Confluence pages. I suspect that part of the problem is the UI Expand naming convention -- the link, which assumes the regular Expand macro, uses ".expand-control", but I'm wondering if it needs to be something like ui-expand, ui-expand-control, RWUI, etc. I've tried different combinations, and haven't gotten it to work.
Has anyone else come across this? Has anyone figured this out?
Thanks in advance...
I figured it out! The correct class name is rwui_expand.
I took the code from the Atlassian forum and changed it from this:
jQuery(".expand-control").each(function(){ jQuery(this).trigger("click");})
to this...
jQuery(".rwui_expand").each(function(){ jQuery(this).trigger("click");})
Works like a champ!

Confluence blueprint substitution does not work in macros with plain-text body

I've created a Confluence blueprint plugin as per the basic/intermediate/advanced tutorials available from Atlassian. I now want to update the page template to include a {HTML} macro with embedded CDATA, where a URL in that CDATA contains a portion to be substituted with user-entered data.
What I'd ideally like to do, with the <at:var...> being substituted with locationid:
<ac:structured-macro ac:name="html">
<ac:plain-text-body>
<![CDATA[<iframe src="http://...?locationid=<at:var at:name="locationid"/>"></iframe>]]>
</ac:plain-text-body>
</ac:structured-macro>
Unfortunately this does not work; the <at:var at:name="..."> inside CDATA can't be substituted.
I've tried various formats of this, for example substituting in the entire CDATA string itself, even going as far as substituting in the entire <ac:structured-macro> block in a single string. None work.
A Google search brought up two very similar questions on the Atlassian community wiki, this and this. Furthermore I found a Confluence Server JIRA to fix this problem, but it's been rejected and closed.
Despite the evidence against a solution I'm hoping that someone creative has an idea of how I can achieve this?
Atlassian SDK: 6.2.14
I'm not exactly sure what you're asking ;) but could it be the same as this discussion in our doc space?
Confluence 4.3-RC1 Release Notes

Import feed to Google Spreadsheet

Trying, for funsies, to make Google Spreadsheet read comments from FaceBook. I have discovered that FaceBook actually uses an API for this, and I've been here and made the code to actually export it in a manner I find most convenient. Now I just need to make Google Spreadsheet somehow read it.. My first thought was to use the different import ways they have (IMPORTXML, IMPORTDATA, IMPORTFEED, IMPORTHTML and IMPORTRANGE). The IMPORTRANGE is a quite obvious no go in my book, and so far I've had no success with the other ones. Am I still too far off importing it, or is there hope? If I get the code a cURL I can just use a (really) long string in my web browser and get something I can surely extract data from, though I would only be able to do it locally, the goal with this is that it will be set globally so to speak.
Solved it using "How to import JSON data into Google Spreadsheets in less than 5 minutes", it instructed me to make a custom script in my sheets and paste this script in it including the generated text, and then simply use the new formula "ImportJSON". Worked like a treat :D Do I just delete this post or simply keep it as is?.. Still kinda fresh to Stack Overflow :P

Oracle Mobile MAF Date Time picker

I am using the regular input date-picker. But after selecting a date, there is no convenient way to confirm the selection. Something like a DONE button that will elegant than clicking anywhere outside to "select". Like the 'clear" button, which is there on the frame. Any suggestions where to get a good date-time picker?
I understand there is no easy Calendar-Date pickup available in MAF unless one installs the Cordova-PhoneGap-Calendar for iOS!
BTW, I found a good date-Picker in Oracle-Wiki (Link Below). In fact, I want something imilar,but either the given code is not the right one or I am missing something.
I have no idea, how to use the Oracle WiKi. Any help on a good Date-Time picker is appreciated.
https://wikis.oracle.com/display/ADFMobileDesign/Component+-+Input+Date