Sylvain,
I usually hard code the Workspace names in variables in an imported function. I don't have any good way of reading the workspace name from the system.
As for dates, you can use toUTCString() to get the GMT date. You can also use getTimezoneOffset() to get the current offset based on the timezone. Since JavaScript is running on the server, it is using the server's time/date locale - you can try to convert to a different local by writing a function to change the offset.
I found this link which discusses some alternatives - https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript
I think this is the best one in our case
/**
* function to calculate local time
* in a different city
* given the city's UTC offset
*/
function calcTime(city, offset) {
// create Date object for current location
var d = new Date();
// convert to msec
// add local time zone offset
// get UTC time in msec
var utc = d.getTime() + (d.getTimezoneOffset() * 60000);
// create new Date object for different city
// using supplied offset
var nd = new Date(utc + (3600000*offset));
// return time as a string
return "The local time in " + city + " is " + nd.toLocaleString();
}