我正在尝试使用Microsoft创建一个事件。让人有点困惑的是date类型的参数,例如具有两个属性的start (类型为start),dateTime和timeZone。
{
"subject": "Test body event graph api ist 1",
"start": {
"dateTime": "2018-01-09T12:00:00",
"timeZone": "India Standard Time"
},
"en
我目前正在与Microsoft Graph REST-API进行斗争。
我想做的是列出今天的事件(发生在午夜和午夜之间)。在中,过滤器的功能非常有限。
我目前的声明如下:
https://graph.microsoft.com/v1.0/me/events?$top=100&$select=*&$filter=start/DateTime ge '2017-10-31T00:00:00' AND end/DateTime le '2017-11-1T00:00:00'&$orderby=start/DateTime ASC
有趣的部分在这
当使用America/Los_Angeles timeZone向https://graph.microsoft.com/v1.0/me/calendar/events发出特定的America/Los_Angeles补丁请求时,我得到了一个ErrorInternalServerError:
"IANA time zones are not supported. REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at h
当我使用安排一次新会议时,我得到了错误的时间。
如果我打电话给https://graph.microsoft.com/v1.0/me/mailboxsettings,我得到了我的时区:"timeZone": "W. Europe Standard Time"。
如果然后用有效负载调用https://graph.microsoft.com/v1.0/me/events:
{
"subject": "My event W. Europe Standard Time 3",
"start": {
"
我正在使用Microsoft graph API从php SDK ()的微软帐户中检索我的消息。
下面给出我的代码示例
<?php
// Autoload files using the Composer autoloader.
require_once __DIR__ . '/vendor/autoload.php';
use Microsoft\Graph\Graph;
use Microsoft\Graph\Model;
//get the access token to access graph api
$tenantId = "X
我是图API的新手,需要获取登录用户的日历事件。我已经得到了这部分工作,跟随这个,但我只看到10个事件。
//get calendar events
var startTime = DateTime.Today.ToString("s");
var endTime = DateTime.Now.AddDays(7).ToString("s");
var queryOptions = new List<Microsoft.Graph.QueryOption>()
在同一时间,我在两台不同的机器上得到不同的时区偏移。我找不到根本原因。
测试代码:
# create empty directory and file, so php has no configuration
mkdir /tmp/empty; touch /tmp/emptycfg
PHP_INI_SCAN_DIR=/tmp/empty /usr/bin/php5 -c /tmp/emptycfg -r '$curTime = new \DateTime("2015-11-06 12:59:59", new \DateTimeZone("UTC"));
我遇到了一个问题,使用Microsoft shift API时,当我寻找下午3点时,无法找到值班人员,请参见以下API调用: https://graph.microsoft.com/v1.0/teams/${route.teamId}/schedule/shifts?$filter=sharedShift/startDateTime ge ${requestData.startDateTimestamp} and sharedShift/endDateTime le ${requestData.startDateTimestamp} 因此,如果startDateTimestamp是当天下午3
在安装Chamilo 1.9之后,我得到了一个:
Remote server or file not found
在domain.com/chamilo/index.php上
当我打开domain.com/ Chamilo /version.php (这只是)时,它显示5.3.15,其中Chamilo需要5.3.X。
我以为这是我的.htaccess文件,但它没有包含任何明显的东西:
# Use PHP 5.3
AddType application/x-httpd-php53 .php
# Check that your Apache virtualhost have this sett
以前,我们使用Microsoft.Sharepoint.CSOM库从SharePoint获取时区信息:
var ctx = new ClientContext(siteUrl);
var spTimeZone = ctx.Web.RegionalSettings.TimeZone;
ctx.Load(spTimeZone);
// 2.Resolve System.TimeZoneInfo from Microsoft.SharePoint.Client.TimeZone
var fixedTimeZoneName = spTimeZone.Description.Replace("
我希望通过将https://graph.microsoft.com/v1.0/me/calendars/<calendar>/events v4.0 $filter作为查询参数应用到OData端点,但是将eq应用于start/timeZone会导致一个错误:
当$filter是subject eq 'My Subject' and start/dateTime eq '1970-01-01T00:00:00.0000000' and end/dateTime eq '1970-01-01T00:01:00.0000000' and s
我正在使用Graph并尝试使用C# Microsoft.Graph API创建事件。让我们假设有以下Microsoft.Graph.Event对象:
{
Subject = "A Title",
Body = new ItemBody(),
Start = {
DateTime = "2022-10-24T00:00:00",
TimeZone = "W. Europe Standard Time"
},
End ={
DateTime = "2022-10-25T00:00:00",
我正在尝试使用PHP来计算两个时区之间的秒数差。我几乎是直接从的PHP文档中复制示例代码,但是我得到了错误的答案(或者至少不是直观上正确的答案)。我的代码是:
$my_timezone = new DateTimeZone("America/New_York");
$server_timezone = new DateTimeZone("America/Denver");
$my_date = new DateTime("now", $my_timezone);
$server_date = new DateTime("now"